cocos2d-x  2.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCPrecompiledShaders Class Reference

#include <CCPrecompiledShaders.h>

Public Member Functions

 CCPrecompiledShaders ()
virtual ~CCPrecompiledShaders ()
std::string addShaders (const GLchar *vShaderByteArray, const GLchar *fShaderByteArray)
local addShaders ( local vShaderByteArray, local fShaderByteArray)
bool addProgram (GLuint program, const std::string &id)
bool loadProgram (GLuint program, const GLchar *vShaderByteArray, const GLchar *fShaderByteArray)
local loadProgram ( local program, local vShaderByteArray, local fShaderByteArray)
void savePrecompiledShaders ()

Static Public Member Functions

static CCPrecompiledShaderssharedPrecompiledShaders ()
 Get current precompiled shaders instance. More...
 
local sharedPrecompiledShaders ()
 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

Constructor & Destructor Documentation

virtual ~CCPrecompiledShaders ( )
virtual
local ~CCPrecompiledShaders ( )
virtual

Member Function Documentation

bool addProgram ( GLuint  program,
const std::string &  id 
)
local addProgram ( local  program,
local  id 
)
std::string addShaders ( const GLchar vShaderByteArray,
const GLchar fShaderByteArray 
)
local addShaders ( local  vShaderByteArray,
local  fShaderByteArray 
)
void Init ( )
protected
local Init ( )
protected
void loadPrecompiledPrograms ( )
protected
local loadPrecompiledPrograms ( )
protected
bool loadProgram ( GLuint  program,
const GLchar vShaderByteArray,
const GLchar fShaderByteArray 
)
local loadProgram ( local  program,
local  vShaderByteArray,
local  fShaderByteArray 
)
void savePrecompiledPrograms ( Windows::Storage::StorageFolder^  folder)
protected
local savePrecompiledPrograms ( local  folder)
protected
void savePrecompiledShaders ( )
local savePrecompiledShaders ( )
static CCPrecompiledShaders*
sharedPrecompiledShaders
( )
static

Get current precompiled shaders instance.

Returns
Current precompiled shaders instance pointer.
local sharedPrecompiledShaders ( )
static

Get current precompiled shaders instance.

Returns
Current precompiled shaders instance pointer.

Member Data Documentation

bool m_isDirty
protected
local m_isDirty
protected
std::map<std::string,
PrecompiledProgram*>
m_precompiledPrograms
protected
local m_precompiledPrograms
protected
std::map<std::string,
CompiledProgram*> m_programs
protected
local m_programs
protected

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