cocos2d-x  3.2alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Sprite3DMaterialCache Class Reference

the sprite3D material is only texture for now More...

#include <CCSprite3DMaterial.h>

Public Member Functions

bool addSprite3DMaterial (const std::string &key, Texture2D *tex)
var addSprite3DMaterial ( var key, var tex)
local addSprite3DMaterial ( local key, local tex)
Texture2DgetSprite3DMaterial (const std::string &key)
local getSprite3DMaterial ( local key)
void removeAllSprite3DMaterial ()
void removeUnusedSprite3DMaterial ()
 ~Sprite3DMaterialCache ()

Static Public Member Functions

static Sprite3DMaterialCachegetInstance ()
local getInstance ()
static void destroyInstance ()
var destroyInstance ()
local destroyInstance ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: Sprite3DMaterialCache()
local __pad0__: Sprite3DMaterialCache()

Protected Attributes

std::unordered_map
< std::string, Texture2D * > 
_materials

Static Protected Attributes

static Sprite3DMaterialCache_cacheInstance
var _cacheInstance
local _cacheInstance

Detailed Description

the sprite3D material is only texture for now

Constructor & Destructor Documentation

Member Function Documentation

bool addSprite3DMaterial ( const std::string &  key,
Texture2D tex 
)
var addSprite3DMaterial ( var  key,
var  tex 
)
local addSprite3DMaterial ( local  key,
local  tex 
)
static void destroyInstance ( )
static
var destroyInstance ( )
static
local destroyInstance ( )
static
static Sprite3DMaterialCache*
getInstance
( )
static
var getInstance ( )
static
local getInstance ( )
static
Texture2D* getSprite3DMaterial ( const std::string &  key)
var getSprite3DMaterial ( var  key)
local getSprite3DMaterial ( local  key)
void removeAllSprite3DMaterial ( )
var removeAllSprite3DMaterial ( )
local removeAllSprite3DMaterial ( )
void removeUnusedSprite3DMaterial ( )
var removeUnusedSprite3DMaterial ( )
local removeUnusedSprite3DMaterial ( )

Member Data Documentation

var __pad0__
local __pad0__
Sprite3DMaterialCache*
_cacheInstance
staticprotected
var _cacheInstance
staticprotected
local _cacheInstance
staticprotected
std::unordered_map<std::string,
Texture2D*> _materials
protected
var _materials
protected
local _materials
protected

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