cocos2d-x  3.3rc0
 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 ()
void addPrecompiledProgram (const char *key, const unsigned char *program, int programLength)
var addPrecompiledProgram ( var key, var program, var programLength)
local addPrecompiledProgram ( local key, local program, local programLength)
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 CCPrecompiledShadersgetInstance ()
 Get current precompiled shaders instance. More...
 
local getInstance ()
 Get current precompiled shaders instance. More...
 

Protected Member Functions

void savePrecompiledPrograms (Windows::Storage::StorageFolder^folder)
var savePrecompiledPrograms ( var folder)
local savePrecompiledPrograms ( local 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
var ~CCPrecompiledShaders ( )
virtual
local ~CCPrecompiledShaders ( )
virtual

Member Function Documentation

void addPrecompiledProgram ( const char *  key,
const unsigned char *  program,
int  programLength 
)
var addPrecompiledProgram ( var  key,
var  program,
var  programLength 
)
local addPrecompiledProgram ( local  key,
local  program,
local  programLength 
)
bool addProgram ( GLuint  program,
const std::string &  id 
)
var addProgram ( var  program,
var  id 
)
local addProgram ( local  program,
local  id 
)
std::string addShaders ( const GLchar vShaderByteArray,
const GLchar fShaderByteArray 
)
var addShaders ( var  vShaderByteArray,
var  fShaderByteArray 
)
local addShaders ( local  vShaderByteArray,
local  fShaderByteArray 
)
static CCPrecompiledShaders*
getInstance
( )
static

Get current precompiled shaders instance.

Returns
Current precompiled shaders instance pointer.
var getInstance ( )
static

Get current precompiled shaders instance.

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

Get current precompiled shaders instance.

Returns
Current precompiled shaders instance pointer.
void Init ( )
protected
var Init ( )
protected
local Init ( )
protected
void loadPrecompiledPrograms ( )
protected
var loadPrecompiledPrograms ( )
protected
local loadPrecompiledPrograms ( )
protected
bool loadProgram ( GLuint  program,
const GLchar vShaderByteArray,
const GLchar fShaderByteArray 
)
var loadProgram ( var  program,
var  vShaderByteArray,
var  fShaderByteArray 
)
local loadProgram ( local  program,
local  vShaderByteArray,
local  fShaderByteArray 
)
void savePrecompiledPrograms ( Windows::Storage::StorageFolder^  folder)
protected
var savePrecompiledPrograms ( var  folder)
protected
local savePrecompiledPrograms ( local  folder)
protected
void savePrecompiledShaders ( )
var savePrecompiledShaders ( )
local savePrecompiledShaders ( )

Member Data Documentation

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

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