NvGraphicShader Class Reference
A helper object for managing a shader program for NvUIGraphic and subclasses. More...
#include <NvUI.h>
Inheritance diagram for NvGraphicShader:

Public Member Functions | |
| virtual void | Load (const char *vs, const char *fs) |
| Helper for compiling the given shader strings and then retrieving indicies. | |
Public Attributes | |
| NvGLSLProgram * | m_program |
| A pointer to an allocated NvGLSLProgram object. | |
| int32_t | m_positionIndex |
| Index for position attribute. | |
| int32_t | m_uvIndex |
| Index for uv attribute. | |
| int32_t | m_matrixIndex |
| Index for matrix uniform. | |
| int32_t | m_alphaIndex |
| Index for alpha uniform. | |
| int32_t | m_colorIndex |
| Index for color uniform. | |
Detailed Description
A helper object for managing a shader program for NvUIGraphic and subclasses.
Member Function Documentation
| virtual void NvGraphicShader::Load | ( | const char * | vs, | |
| const char * | fs | |||
| ) | [virtual] |
Helper for compiling the given shader strings and then retrieving indicies.
Reimplemented in NvGraphicFrameShader.
Member Data Documentation
A pointer to an allocated NvGLSLProgram object.
We're not a subclass as we could easily have some other method for loading/storing what shader program we are using (previously, this was just a GLint for the compiled program).
The documentation for this class was generated from the following file: