cocos2d-x  2.2.6
 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)
var addShaders ( var vShaderByteArray, var 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)
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)
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

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 
)
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 ( )
static CCPrecompiledShaders*
sharedPrecompiledShaders
( )
static

Get current precompiled shaders instance.

Returns
Current precompiled shaders instance pointer.
var 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
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: