|
vdr-plugin-softhddevice-drm-gles 1.4.0
|
#include <openglosd.h>
Public Member Functions | |
| cShader (void) | |
| virtual | ~cShader (void) |
| bool | Load (eShaderType type) |
| void | Use (void) |
| void | SetFloat (const GLchar *name, GLfloat value) |
| void | SetInteger (const GLchar *name, GLint value) |
| void | SetVector2f (const GLchar *name, GLfloat x, GLfloat y) |
| void | SetVector3f (const GLchar *name, GLfloat x, GLfloat y, GLfloat z) |
| void | SetVector4f (const GLchar *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
| void | SetMatrix4 (const GLchar *name, const glm::mat4 &matrix) |
Private Member Functions | |
| bool | Compile (const char *vertexCode, const char *fragmentCode) |
| bool | CheckCompileErrors (GLuint object, bool program=false) |
Private Attributes | |
| eShaderType | type |
| GLuint | id |
Definition at line 106 of file openglosd.h.
|
inline |
Definition at line 113 of file openglosd.h.
|
inlinevirtual |
Definition at line 114 of file openglosd.h.
|
private |
|
private |
Definition at line 376 of file openglosd.cpp.
References CheckCompileErrors(), and GL_CHECK.
Referenced by Load().
| bool cShader::Load | ( | eShaderType | type | ) |
Definition at line 312 of file openglosd.cpp.
References Compile(), LOGERROR, rectFragmentShader, rectVertexShader, stRect, stText, stTexture, stTextureSwapBR, textFragmentShader, textureFragmentShader, textureFragmentShaderSwapBR, textureVertexShader, textVertexShader, and type.
Referenced by cOglThread::InitShaders().
| void cShader::SetFloat | ( | const GLchar * | name, |
| GLfloat | value | ||
| ) |
Definition at line 352 of file openglosd.cpp.
References GL_CHECK.
| void cShader::SetInteger | ( | const GLchar * | name, |
| GLint | value | ||
| ) |
Definition at line 356 of file openglosd.cpp.
References GL_CHECK.
Referenced by cOglVb::SetShaderTexture().
| void cShader::SetMatrix4 | ( | const GLchar * | name, |
| const glm::mat4 & | matrix | ||
| ) |
Definition at line 372 of file openglosd.cpp.
References GL_CHECK.
Referenced by cOglVb::SetShaderProjectionMatrix().
| void cShader::SetVector2f | ( | const GLchar * | name, |
| GLfloat | x, | ||
| GLfloat | y | ||
| ) |
Definition at line 360 of file openglosd.cpp.
References GL_CHECK.
| void cShader::SetVector3f | ( | const GLchar * | name, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z | ||
| ) |
Definition at line 364 of file openglosd.cpp.
References GL_CHECK.
| void cShader::SetVector4f | ( | const GLchar * | name, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z, | ||
| GLfloat | w | ||
| ) |
Definition at line 368 of file openglosd.cpp.
References GL_CHECK.
Referenced by cOglVb::SetShaderAlpha(), cOglVb::SetShaderBorderColor(), and cOglVb::SetShaderColor().
| void cShader::Use | ( | void | ) |
Definition at line 308 of file openglosd.cpp.
References GL_CHECK.
Referenced by cOglVb::ActivateShader().
|
private |
Definition at line 109 of file openglosd.h.
|
private |
Definition at line 108 of file openglosd.h.
Referenced by CheckCompileErrors(), and Load().