Back to index

nux  3.0.0
Public Member Functions | Public Attributes
nux::GLShaderParameter Class Reference

#include <GLShaderParameter.h>

Collaboration diagram for nux::GLShaderParameter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GLShaderParameter (GLProgramObject *Shader, const char *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)

Public Attributes

int 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

Detailed Description

Definition at line 49 of file GLShaderParameter.h.


Constructor & Destructor Documentation

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

Definition at line 31 of file GLShaderParameter.cpp.

    :   m_ShaderParameterType(ParamType)
    ,   m_Name(ParamName)
    ,   m_bIsOptional(IsOptional)
    ,   m_bIsStatic(IsStatic)
    ,   m_ShaderProgram(Shader)
    ,   m_ShaderProgram2(0)
    ,   m_NextParameter(0)
  {
    m_Index = -1;
  }

Member Function Documentation

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

Definition at line 139 of file GLShaderParameter.h.

    {
      //CHECKGL(glUniform1iARB( m_Index, textureId ));
      //CHECKGL(cgGLEnableTextureParameter( CgParameter ));
    }
void nux::GLShaderParameter::SetUniform1f ( FLOAT  FloatA) [inline]

Definition at line 70 of file GLShaderParameter.h.

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

Definition at line 96 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniform1fvARB( m_Index, count, value ));
    }

Definition at line 75 of file GLShaderParameter.h.

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

Definition at line 80 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniform2fARB( m_Index, FloatA, FloatB ));
    }
void nux::GLShaderParameter::SetUniform2fv ( GLsizei  count,
GLfloat *  value 
) [inline]

Definition at line 102 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniform2fvARB( m_Index, count, value ));
    }
void nux::GLShaderParameter::SetUniform3f ( FLOAT  FloatA,
FLOAT  FloatB,
FLOAT  FloatC 
) [inline]

Definition at line 85 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniform3fARB( m_Index, FloatA, FloatB, FloatC ));
    }
void nux::GLShaderParameter::SetUniform3fv ( GLsizei  count,
GLfloat *  value 
) [inline]

Definition at line 108 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniform3fvARB( m_Index, count, value ));
    }
void nux::GLShaderParameter::SetUniform4f ( FLOAT  FloatA,
FLOAT  FloatB,
FLOAT  FloatC,
FLOAT  FloatD 
) [inline]

Definition at line 90 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniform4fARB( m_Index, FloatA, FloatB, FloatC, FloatD ));
    }

Here is the caller graph for this function:

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

Definition at line 114 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniform4fvARB( m_Index, count, value ));
    }
void nux::GLShaderParameter::SetUniformMatrix2fv ( GLsizei  count,
GLfloat *  value,
GLboolean  transpose = GL_FALSE 
) [inline]

Definition at line 120 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniformMatrix2fvARB( m_Index, count, transpose, value ));
    }
void nux::GLShaderParameter::SetUniformMatrix3fv ( GLsizei  count,
GLfloat *  value,
GLboolean  transpose = GL_FALSE 
) [inline]

Definition at line 126 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniformMatrix3fvARB( m_Index, count, transpose, value ));
    }
void nux::GLShaderParameter::SetUniformMatrix4fv ( GLsizei  count,
GLfloat *  value,
GLboolean  transpose = GL_FALSE 
) [inline]

Definition at line 132 of file GLShaderParameter.h.

    {
      NUX_RETURN_IF_TRUE(m_Index == -1);
      CHECKGL(glUniformMatrix4fvARB( m_Index, count, transpose, value ));
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 57 of file GLShaderParameter.h.

Definition at line 55 of file GLShaderParameter.h.

Definition at line 56 of file GLShaderParameter.h.

Definition at line 52 of file GLShaderParameter.h.

Definition at line 54 of file GLShaderParameter.h.

Definition at line 60 of file GLShaderParameter.h.

Definition at line 53 of file GLShaderParameter.h.

Definition at line 58 of file GLShaderParameter.h.

Definition at line 59 of file GLShaderParameter.h.

Definition at line 61 of file GLShaderParameter.h.

Definition at line 62 of file GLShaderParameter.h.


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