Cocos2d-x  v4
Sprite3DCache Class Reference

Sprite3DCache. More...

Public Member Functions

Sprite3DData * getSpriteData (const std::string &key) const
 get the SpriteData struct More...
 
bool addSprite3DData (const std::string &key, Sprite3DData *spritedata)
 add the SpriteData into Sprite3D by given the specified key More...
 
void removeSprite3DData (const std::string &key)
 remove the SpriteData from Sprite3D by given the specified key
 
void removeAllSprite3DData ()
 remove all the SpriteData from Sprite3D
 

Static Public Member Functions

static Sprite3DCachegetInstance ()
 get & destroy
 

Detailed Description

Sprite3DCache.

the cache data of Sprite3D, use to speed up Sprite3D::create

Member Function Documentation

◆ getSpriteData()

Sprite3DData* getSpriteData ( const std::string &  key) const

get the SpriteData struct

@lua NA

◆ addSprite3DData()

bool addSprite3DData ( const std::string &  key,
Sprite3DData *  spritedata 
)

add the SpriteData into Sprite3D by given the specified key

@lua NA


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