nux-0.9.46

nux::GLShaderParameter Class Reference

#include <NuxGraphics/GLShaderParameter.h>

Public Member Functions

 GLShaderParameter (GLProgramObject *Shader, const TCHAR *ParamName, eShaderParameterType InType, bool InbIsOptional=FALSE, bool InbIsStatic=FALSE)
void SetUniform1f (FLOAT FloatA)
void SetUniform1i (INT i)
void SetUniform2f (FLOAT FloatA, FLOAT FloatB)
void SetUniform3f (FLOAT FloatA, FLOAT FloatB, FLOAT FloatC)
void SetUniform4f (FLOAT FloatA, FLOAT FloatB, FLOAT FloatC, FLOAT FloatD)
void SetUniform1fv (GLsizei count, GLfloat *value)
void SetUniform2fv (GLsizei count, GLfloat *value)
void SetUniform3fv (GLsizei count, GLfloat *value)
void SetUniform4fv (GLsizei count, GLfloat *value)
void SetUniformMatrix2fv (GLsizei count, GLfloat *value, GLboolean transpose=GL_FALSE)
void SetUniformMatrix3fv (GLsizei count, GLfloat *value, GLboolean transpose=GL_FALSE)
void SetUniformMatrix4fv (GLsizei count, GLfloat *value, GLboolean transpose=GL_FALSE)
void SetTexture (const GLuint textureId)
void MapTo (GLProgramObject *Shader)

Data Fields

GLuint m_Index
eShaderParameterType m_ShaderParameterType
NString m_Name
bool m_bIsOptional
bool m_bIsStatic
bool bStaticSet
GLProgramObject * m_ShaderProgram
IOpenGLShaderProgramm_ShaderProgram2
GLShaderParameterm_NextParameter
UINT m_Size
UINT m_Type

Constructor & Destructor Documentation

nux::GLShaderParameter::GLShaderParameter ( GLProgramObject *  Shader,
const TCHAR ParamName,
eShaderParameterType  InType,
bool  InbIsOptional = FALSE,
bool  InbIsStatic = FALSE 
)

Member Function Documentation

void nux::GLShaderParameter::MapTo ( GLProgramObject *  Shader)
void nux::GLShaderParameter::SetTexture ( const GLuint  textureId) [inline]
void nux::GLShaderParameter::SetUniform1f ( FLOAT  FloatA) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniform1fv ( GLsizei  count,
GLfloat *  value 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniform1i ( INT  i) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniform2f ( FLOAT  FloatA,
FLOAT  FloatB 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniform2fv ( GLsizei  count,
GLfloat *  value 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniform3f ( FLOAT  FloatA,
FLOAT  FloatB,
FLOAT  FloatC 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniform3fv ( GLsizei  count,
GLfloat *  value 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniform4f ( FLOAT  FloatA,
FLOAT  FloatB,
FLOAT  FloatC,
FLOAT  FloatD 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniform4fv ( GLsizei  count,
GLfloat *  value 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniformMatrix2fv ( GLsizei  count,
GLfloat *  value,
GLboolean  transpose = GL_FALSE 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniformMatrix3fv ( GLsizei  count,
GLfloat *  value,
GLboolean  transpose = GL_FALSE 
) [inline]

References CHECKGL, and m_Index.

void nux::GLShaderParameter::SetUniformMatrix4fv ( GLsizei  count,
GLfloat *  value,
GLboolean  transpose = GL_FALSE 
) [inline]

References CHECKGL, and m_Index.


Field Documentation


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