#include <CCPrecompiledShaders.h>
Public Member Functions | |
| CCPrecompiledShaders () | |
| virtual | ~CCPrecompiledShaders () |
| std::string | addShaders (const GLchar *vShaderByteArray, const GLchar *fShaderByteArray) |
| bool | addProgram (GLuint program, const std::string &id) |
| bool | loadProgram (GLuint program, const GLchar *vShaderByteArray, const GLchar *fShaderByteArray) |
| void | savePrecompiledShaders () |
Static Public Member Functions | |
| static CCPrecompiledShaders * | getInstance () |
| Get current precompiled shaders instance. More... | |
Protected Member Functions | |
| void | savePrecompiledPrograms (Windows::Storage::StorageFolder^folder) |
| void | loadPrecompiledPrograms () |
| void | Init () |
Protected Attributes | |
| std::map< std::string, CompiledProgram * > | m_programs |
| std::map< std::string, PrecompiledProgram * > | m_precompiledPrograms |
| bool | m_isDirty |
|
virtual |
| bool addProgram | ( | GLuint | program, |
| const std::string & | id | ||
| ) |
|
static |
Get current precompiled shaders instance.
|
protected |
|
protected |
| bool loadProgram | ( | GLuint | program, |
| const GLchar * | vShaderByteArray, | ||
| const GLchar * | fShaderByteArray | ||
| ) |
|
protected |
| void savePrecompiledShaders | ( | ) |
|
protected |
|
protected |
|
protected |