qxLib
|
OpenGL base shader. More...
#include <shaders.h>
Public Member Functions | |
string | Init (const GLchar *pszShaderCode) |
Init (compile) shader. More... | |
GLuint | GetID () const |
Get shader name. More... | |
GLint | GetParameter (GLenum eParameter) const |
Get shader parameter. More... | |
OpenGL base shader.
~
ShaderType | - GL_VERTEX_SHADER, GL_TESS_CONTROL_SHADER, GL_TESS_EVALUATION_SHADER, GL_GEOMETRY_SHADER, GL_FRAGMENT_SHADER, GL_COMPUTE_SHADER |
|
inline |
|
inline |
Get shader parameter.
eParameter | - shader parameter |
- | shader parameter value |
Definition at line 60 of file shaders.inl.
|
inline |
Init (compile) shader.
pszShaderCode | - string with shader code |
- | error or empty string if init was successful |
Definition at line 20 of file shaders.inl.