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

#include <CCBundle3D.h>

Public Member Functions

bool load (const std::string &path)
var load ( var path)
local load ( local path)
bool loadMeshData (const std::string &id, MeshData *meshdata)
 load mesh data from bundle More...
 
var loadMeshData ( var id, var meshdata)
 load mesh data from bundle More...
 
local loadMeshData ( local id, local meshdata)
 load mesh data from bundle More...
 
bool loadSkinData (const std::string &id, SkinData *skindata)
 load skin data from bundle More...
 
bool loadMaterialData (const std::string &id, MaterialData *materialdata)
 load material data from bundle More...
 
var loadMaterialData ( var id, var materialdata)
 load material data from bundle More...
 
local loadMaterialData ( local id, local materialdata)
 load material data from bundle More...
 
bool loadAnimationData (const std::string &id, Animation3DData *animationdata)
 load material data from bundle More...
 

Static Public Member Functions

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

Protected Member Functions

GLenum parseGLType (const std::string &str)
var parseGLType ( var str)
local parseGLType ( local str)
unsigned int parseGLTypeSize (const std::string &str)
var parseGLTypeSize ( var str)
local parseGLTypeSize ( local str)
unsigned int parseGLProgramAttribute (const std::string &str)
local parseGLProgramAttribute ( local str)
void getModelPath (const std::string &path)
var getModelPath ( var path)
local getModelPath ( local path)
 ~Bundle3D ()
 ~Bundle3D ()
 ~Bundle3D ()

Protected Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: Bundle3D()
std::string _modelRelativePath
var _modelRelativePath
local _modelRelativePath
char * _documentBuffer
var _documentBuffer
local _documentBuffer
std::string _path
var _path
local _path
rapidjson::Document _document
var _document
local _document
bool _isBinary
var _isBinary
local _isBinary

Static Protected Attributes

static Bundle3D * _instance
var _instance
local _instance

Constructor & Destructor Documentation

~Bundle3D ( )
protected
var ~Bundle3D ( )
protected
local ~Bundle3D ( )
protected

Member Function Documentation

static void destroyInstance ( )
static
var destroyInstance ( )
static
local destroyInstance ( )
static
static Bundle3D* getInstance ( )
static
var getInstance ( )
static
local getInstance ( )
static
void getModelPath ( const std::string &  path)
protected
var getModelPath ( var  path)
protected
local getModelPath ( local  path)
protected
bool load ( const std::string &  path)
var load ( var  path)
local load ( local  path)
bool loadAnimationData ( const std::string &  id,
Animation3DData *  animationdata 
)

load material data from bundle

Parameters
idThe ID of the animation, load the first animation in the bundle if it is empty
var loadAnimationData ( var  id,
var  animationdata 
)

load material data from bundle

Parameters
idThe ID of the animation, load the first animation in the bundle if it is empty
local loadAnimationData ( local  id,
local  animationdata 
)

load material data from bundle

Parameters
idThe ID of the animation, load the first animation in the bundle if it is empty
bool loadMaterialData ( const std::string &  id,
MaterialData *  materialdata 
)

load material data from bundle

Parameters
idThe ID of the material, load the first Material in the bundle if it is empty
var loadMaterialData ( var  id,
var  materialdata 
)

load material data from bundle

Parameters
idThe ID of the material, load the first Material in the bundle if it is empty
local loadMaterialData ( local  id,
local  materialdata 
)

load material data from bundle

Parameters
idThe ID of the material, load the first Material in the bundle if it is empty
bool loadMeshData ( const std::string &  id,
MeshData *  meshdata 
)

load mesh data from bundle

Parameters
idThe ID of the mesh, load the first Mesh in the bundle if it is empty
var loadMeshData ( var  id,
var  meshdata 
)

load mesh data from bundle

Parameters
idThe ID of the mesh, load the first Mesh in the bundle if it is empty
local loadMeshData ( local  id,
local  meshdata 
)

load mesh data from bundle

Parameters
idThe ID of the mesh, load the first Mesh in the bundle if it is empty
bool loadSkinData ( const std::string &  id,
SkinData *  skindata 
)

load skin data from bundle

Parameters
idThe ID of the skin, load the first Skin in the bundle if it is empty
var loadSkinData ( var  id,
var  skindata 
)

load skin data from bundle

Parameters
idThe ID of the skin, load the first Skin in the bundle if it is empty
local loadSkinData ( local  id,
local  skindata 
)

load skin data from bundle

Parameters
idThe ID of the skin, load the first Skin in the bundle if it is empty
unsigned int
parseGLProgramAttribute
( const std::string &  str)
protected
var parseGLProgramAttribute ( var  str)
protected
local parseGLProgramAttribute ( local  str)
protected
GLenum parseGLType ( const std::string &  str)
protected
var parseGLType ( var  str)
protected
local parseGLType ( local  str)
protected
unsigned int parseGLTypeSize ( const std::string &  str)
protected
var parseGLTypeSize ( var  str)
protected
local parseGLTypeSize ( local  str)
protected

Member Data Documentation

CC_CONSTRUCTOR_ACCESS __pad0__
protected
var __pad0__
protected
local __pad0__
protected
rapidjson::Document _document
protected
var _document
protected
local _document
protected
char* _documentBuffer
protected
var _documentBuffer
protected
local _documentBuffer
protected
Bundle3D* _instance
staticprotected
var _instance
staticprotected
local _instance
staticprotected
bool _isBinary
protected
var _isBinary
protected
local _isBinary
protected
std::string _modelRelativePath
protected
var _modelRelativePath
protected
local _modelRelativePath
protected
std::string _path
protected
var _path
protected
local _path
protected

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