cocos2d-x  3.5
 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)
 add to cache More...
 
var addSprite3DMaterial ( var key, var tex)
 add to cache More...
 
local addSprite3DMaterial ( local key, local tex)
 add to cache More...
 
Texture2DgetSprite3DMaterial (const std::string &key)
 get material from cache More...
 
var getSprite3DMaterial ( var key)
 get material from cache More...
 
local getSprite3DMaterial ( local key)
 get material from cache More...
 
void removeAllSprite3DMaterial ()
 remove all spritematerial More...
 
void removeUnusedSprite3DMaterial ()
 remove unused spritematerial More...
 
 ~Sprite3DMaterialCache ()

Static Public Member Functions

static Sprite3DMaterialCachegetInstance ()
 get & destroy cache More...
 
var getInstance ()
 get & destroy cache More...
 
local getInstance ()
 get & destroy cache More...
 
static void destroyInstance ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: Sprite3DMaterialCache()

Protected Attributes

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

Static Protected Attributes

static Sprite3DMaterialCache_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 
)

add to cache

var addSprite3DMaterial ( var  key,
var  tex 
)

add to cache

local addSprite3DMaterial ( local  key,
local  tex 
)

add to cache

static void destroyInstance ( )
static
var destroyInstance ( )
static
local destroyInstance ( )
static
static Sprite3DMaterialCache*
getInstance
( )
static

get & destroy cache

var getInstance ( )
static

get & destroy cache

local getInstance ( )
static

get & destroy cache

Texture2D* getSprite3DMaterial ( const std::string &  key)

get material from cache

var getSprite3DMaterial ( var  key)

get material from cache

local getSprite3DMaterial ( local  key)

get material from cache

void removeAllSprite3DMaterial ( )

remove all spritematerial

var removeAllSprite3DMaterial ( )

remove all spritematerial

local removeAllSprite3DMaterial ( )

remove all spritematerial

void removeUnusedSprite3DMaterial ( )

remove unused spritematerial

var removeUnusedSprite3DMaterial ( )

remove unused spritematerial

local removeUnusedSprite3DMaterial ( )

remove unused spritematerial

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: