![]() |
DDNet documentation
|
#include <opengl_sl_program.h>
Public Member Functions | |
| void | CreateProgram () |
| void | DeleteProgram () |
| bool | AddShader (CGLSL *pShader) const |
| bool | LinkProgram () |
| void | UseProgram () const |
| TWGLuint | GetProgramId () const |
| void | DetachShader (CGLSL *pShader) const |
| void | DetachShaderById (TWGLuint ShaderId) const |
| void | DetachAllShaders () const |
| void | SetUniformVec2 (int Loc, int Count, const float *pValue) |
| void | SetUniformVec4 (int Loc, int Count, const float *pValue) |
| void | SetUniform (int Loc, int Value) |
| void | SetUniform (int Loc, bool Value) |
| void | SetUniform (int Loc, float Value) |
| void | SetUniform (int Loc, int Count, const float *pValues) |
| int | GetUniformLoc (const char *pName) const |
| CGLSLProgram () | |
| virtual | ~CGLSLProgram () |
Protected Attributes | |
| TWGLuint | m_ProgramId |
| bool | m_IsLinked |
| CGLSLProgram::CGLSLProgram | ( | ) |
|
virtual |
| bool CGLSLProgram::AddShader | ( | CGLSL * | pShader | ) | const |
| void CGLSLProgram::CreateProgram | ( | ) |
| void CGLSLProgram::DeleteProgram | ( | ) |
| void CGLSLProgram::DetachAllShaders | ( | ) | const |
| void CGLSLProgram::DetachShader | ( | CGLSL * | pShader | ) | const |
| void CGLSLProgram::DetachShaderById | ( | TWGLuint | ShaderId | ) | const |
| TWGLuint CGLSLProgram::GetProgramId | ( | ) | const |
| int CGLSLProgram::GetUniformLoc | ( | const char * | pName | ) | const |
| bool CGLSLProgram::LinkProgram | ( | ) |
| void CGLSLProgram::SetUniform | ( | int | Loc, |
| bool | Value ) |
| void CGLSLProgram::SetUniform | ( | int | Loc, |
| float | Value ) |
| void CGLSLProgram::SetUniform | ( | int | Loc, |
| int | Count, | ||
| const float * | pValues ) |
| void CGLSLProgram::SetUniform | ( | int | Loc, |
| int | Value ) |
| void CGLSLProgram::SetUniformVec2 | ( | int | Loc, |
| int | Count, | ||
| const float * | pValue ) |
| void CGLSLProgram::SetUniformVec4 | ( | int | Loc, |
| int | Count, | ||
| const float * | pValue ) |
| void CGLSLProgram::UseProgram | ( | ) | const |
|
protected |
|
protected |