#include <CCMaterialManager.h>
Public Member Functions | |
void | getMaterialID (GLuint textureID, GLuint shaderID, BlendFunc blendFunc) |
var | getMaterialID ( var textureID, var shaderID, var blendFunc) |
local | getMaterialID ( local textureID, local shaderID, local blendFunc) |
void | registerTexture (GLuint textureID) |
void | unregisterTexture (GLuint textureID) |
var | unregisterTexture ( var textureID) |
local | unregisterTexture ( local textureID) |
void | registerShader (GLuint shaderID) |
void | unregisterShader (GLuint shaderID) |
var | unregisterShader ( var shaderID) |
local | unregisterShader ( local shaderID) |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Release the ownership immediately. More... | |
Ref * | autorelease () |
Release the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Static Public Member Functions | |
static MaterialManager * | getInstance () |
local | getInstance () |
static void | destroyInstance () |
var | destroyInstance () |
local | destroyInstance () |
Protected Member Functions | |
MaterialManager () | |
virtual | ~MaterialManager () |
var | ~MaterialManager () |
local | ~MaterialManager () |
bool | init () |
int | getTextureID (GLuint textureID) |
int | getShaderID (GLuint shaderID) |
int | getBlendFuncID (GLint blendFunc) |
local | getBlendFuncID ( local blendFunc) |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Protected Attributes | |
std::map< GLuint, int > | _textureIDMapping |
std::map< GLuint, int > | _shaderIDMapping |
var | _shaderIDMapping |
local | _shaderIDMapping |
std::map< BlendFunc, int > | _blendFuncMapping |
var | _blendFuncMapping |
local | _blendFuncMapping |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
void getMaterialID | ( | GLuint | textureID, |
GLuint | shaderID, | ||
BlendFunc | blendFunc | ||
) |
var getMaterialID | ( | var | textureID, |
var | shaderID, | ||
var | blendFunc | ||
) |
local getMaterialID | ( | local | textureID, |
local | shaderID, | ||
local | blendFunc | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void registerShader | ( | GLuint | shaderID) |
var registerShader | ( | var | shaderID) |
local registerShader | ( | local | shaderID) |
void registerTexture | ( | GLuint | textureID) |
var registerTexture | ( | var | textureID) |
local registerTexture | ( | local | textureID) |
void unregisterShader | ( | GLuint | shaderID) |
var unregisterShader | ( | var | shaderID) |
local unregisterShader | ( | local | shaderID) |
void unregisterTexture | ( | GLuint | textureID) |
var unregisterTexture | ( | var | textureID) |
local unregisterTexture | ( | local | textureID) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |