cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Sprite3DCache Class Reference

Sprite3DCache. More...

#include <CCSprite3D.h>

Classes

struct  Sprite3DData
 

Public Member Functions

Sprite3DDatagetSpriteData (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...
 
var addSprite3DData ( var key, var spritedata)
 add the SpriteData into Sprite3D by given the specified key More...
 
local addSprite3DData ( local key, local 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 More...
 
void removeAllSprite3DData ()
 remove all the SpriteData from Sprite3D More...
 
var removeAllSprite3DData ()
 remove all the SpriteData from Sprite3D More...
 
local removeAllSprite3DData ()
 remove all the SpriteData from Sprite3D More...
 
 ~Sprite3DCache ()
 ~Sprite3DCache ()
 ~Sprite3DCache ()

Static Public Member Functions

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

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: Sprite3DCache()

Protected Attributes

std::unordered_map
< std::string, Sprite3DData * > 
_spriteDatas

Static Protected Attributes

static Sprite3DCache_cacheInstance
var _cacheInstance
local _cacheInstance

Detailed Description

Sprite3DCache.

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

Constructor & Destructor Documentation

var ~Sprite3DCache ( )
local ~Sprite3DCache ( )

Member Function Documentation

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

add the SpriteData into Sprite3D by given the specified key

var addSprite3DData ( var  key,
var  spritedata 
)

add the SpriteData into Sprite3D by given the specified key

local addSprite3DData ( local  key,
local  spritedata 
)

add the SpriteData into Sprite3D by given the specified key

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

get & destroy

var getInstance ( )
static

get & destroy

local getInstance ( )
static

get & destroy

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

get the SpriteData struct

var getSpriteData ( var  key)

get the SpriteData struct

local getSpriteData ( local  key)

get the SpriteData struct

void removeAllSprite3DData ( )

remove all the SpriteData from Sprite3D

var removeAllSprite3DData ( )

remove all the SpriteData from Sprite3D

local removeAllSprite3DData ( )

remove all the SpriteData from Sprite3D

void removeSprite3DData ( const std::string &  key)

remove the SpriteData from Sprite3D by given the specified key

var removeSprite3DData ( var  key)

remove the SpriteData from Sprite3D by given the specified key

local removeSprite3DData ( local  key)

remove the SpriteData from Sprite3D by given the specified key

Member Data Documentation

var __pad0__
local __pad0__
Sprite3DCache* _cacheInstance
staticprotected
var _cacheInstance
staticprotected
local _cacheInstance
staticprotected
std::unordered_map<std::string,
Sprite3DData*> _spriteDatas
protected
var _spriteDatas
protected
local _spriteDatas
protected

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