|
vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
|
#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 |
Definition at line 76 of file openglosd.h.
|
inline |
Definition at line 79 of file openglosd.h.
|
private |
Definition at line 188 of file openglosd.cpp.
References LOGERROR, and m_type.
Referenced by Compile().
|
private |
Definition at line 154 of file openglosd.cpp.
References CheckCompileErrors(), and m_id.
Referenced by Load().
| bool cOglShader::Load | ( | eShaderType | type | ) |
Definition at line 83 of file openglosd.cpp.
References Compile(), LOGERROR, m_type, rectFragmentShader, rectVertexShader, stRect, stText, stTexture, stTextureSwapBR, textFragmentShader, textureFragmentShader, textureFragmentShaderSwapBR, textureVertexShader, and textVertexShader.
Referenced by cOglThread::InitShaders().
| void cOglShader::SetFloat | ( | const GLchar * | name, |
| GLfloat | value | ||
| ) |
Definition at line 124 of file openglosd.cpp.
References m_id.
| void cOglShader::SetInteger | ( | const GLchar * | name, |
| GLint | value | ||
| ) |
Definition at line 129 of file openglosd.cpp.
References m_id.
Referenced by cOglVb::SetShaderTexture().
| void cOglShader::SetMatrix4 | ( | const GLchar * | name, |
| const glm::mat4 & | matrix | ||
| ) |
Definition at line 149 of file openglosd.cpp.
References m_id.
Referenced by cOglVb::SetShaderProjectionMatrix().
| void cOglShader::SetVector2f | ( | const GLchar * | name, |
| GLfloat | x, | ||
| GLfloat | y | ||
| ) |
Definition at line 134 of file openglosd.cpp.
References m_id.
| void cOglShader::SetVector3f | ( | const GLchar * | name, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z | ||
| ) |
Definition at line 139 of file openglosd.cpp.
References m_id.
| void cOglShader::SetVector4f | ( | const GLchar * | name, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z, | ||
| GLfloat | w | ||
| ) |
Definition at line 144 of file openglosd.cpp.
References m_id.
Referenced by cOglVb::SetShaderAlpha(), cOglVb::SetShaderBorderColor(), and cOglVb::SetShaderColor().
| void cOglShader::Use | ( | void | ) |
Definition at line 78 of file openglosd.cpp.
References m_id.
Referenced by cOglVb::ActivateShader().
|
private |
Definition at line 92 of file openglosd.h.
Referenced by Compile(), SetFloat(), SetInteger(), SetMatrix4(), SetVector2f(), SetVector3f(), SetVector4f(), and Use().
|
private |
Definition at line 91 of file openglosd.h.
Referenced by CheckCompileErrors(), and Load().