DDraceNetwork Docs
CGLSLProgram Class Reference

#include <opengl_sl_program.h>

Inheritance diagram for CGLSLProgram:
[legend]

Public Member Functions

void CreateProgram ()
 
void DeleteProgram ()
 
bool AddShader (CGLSL *pShader) const
 
void 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
 

Constructor & Destructor Documentation

◆ CGLSLProgram()

CGLSLProgram::CGLSLProgram ( )

◆ ~CGLSLProgram()

CGLSLProgram::~CGLSLProgram ( )
virtual

Member Function Documentation

◆ AddShader()

bool CGLSLProgram::AddShader ( CGLSL pShader) const

◆ CreateProgram()

void CGLSLProgram::CreateProgram ( )

◆ DeleteProgram()

void CGLSLProgram::DeleteProgram ( )

◆ DetachAllShaders()

void CGLSLProgram::DetachAllShaders ( ) const

◆ DetachShader()

void CGLSLProgram::DetachShader ( CGLSL pShader) const

◆ DetachShaderById()

void CGLSLProgram::DetachShaderById ( TWGLuint  ShaderId) const

◆ GetProgramId()

TWGLuint CGLSLProgram::GetProgramId ( ) const

◆ GetUniformLoc()

int CGLSLProgram::GetUniformLoc ( const char *  pName) const

◆ LinkProgram()

void CGLSLProgram::LinkProgram ( )

◆ SetUniform() [1/4]

void CGLSLProgram::SetUniform ( int  Loc,
bool  Value 
)

◆ SetUniform() [2/4]

void CGLSLProgram::SetUniform ( int  Loc,
float  Value 
)

◆ SetUniform() [3/4]

void CGLSLProgram::SetUniform ( int  Loc,
int  Count,
const float *  pValues 
)

◆ SetUniform() [4/4]

void CGLSLProgram::SetUniform ( int  Loc,
int  Value 
)

◆ SetUniformVec2()

void CGLSLProgram::SetUniformVec2 ( int  Loc,
int  Count,
const float *  pValue 
)

◆ SetUniformVec4()

void CGLSLProgram::SetUniformVec4 ( int  Loc,
int  Count,
const float *  pValue 
)

◆ UseProgram()

void CGLSLProgram::UseProgram ( ) const

Member Data Documentation

◆ m_IsLinked

bool CGLSLProgram::m_IsLinked
protected

◆ m_ProgramId

TWGLuint CGLSLProgram::m_ProgramId
protected

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