vdr-plugin-softhddevice-drm-gles 1.6.2
cOglShader Class Reference

Vertex/Fragment Shader. More...

#include <openglosd.h>

Public Member Functions

 cOglShader (void)
 
bool Load (eShaderType)
 
void Use (void)
 
void SetFloat (const GLchar *, GLfloat)
 
void SetInteger (const GLchar *, GLint)
 
void SetVector2f (const GLchar *, GLfloat, GLfloat)
 
void SetVector3f (const GLchar *, GLfloat, GLfloat, GLfloat)
 
void SetVector4f (const GLchar *, GLfloat, GLfloat, GLfloat, GLfloat)
 
void SetMatrix4 (const GLchar *, const glm::mat4 &)
 

Private Member Functions

bool Compile (const char *, const char *)
 
bool CheckCompileErrors (GLuint, bool program=false)
 

Private Attributes

eShaderType m_type
 
GLuint m_id
 

Detailed Description

Vertex/Fragment Shader.

Represents a shader and keeps everything we need to set variable within the shader

Definition at line 74 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglShader()

cOglShader::cOglShader ( void  )
inline

Definition at line 76 of file openglosd.h.

Member Data Documentation

◆ m_id

GLuint cOglShader::m_id
private

◆ m_type

eShaderType cOglShader::m_type
private

Definition at line 88 of file openglosd.h.

Referenced by CheckCompileErrors(), and Load().


The documentation for this class was generated from the following files: