Defines a bundle file that contains a collection of assets. More...
#include <CCBundle3D.h>
Public Member Functions | |
void | clear () |
var | clear () |
local | clear () |
bool | load (const std::string &path) |
load a file. More... | |
var | load ( var path) |
load a file. More... | |
local | load ( local path) |
load a file. More... | |
bool | loadMeshData (const std::string &id, MeshData *meshdata) |
load mesh data from bundle More... | |
bool | loadSkinData (const std::string &id, SkinData *skindata) |
load skin data from bundle More... | |
var | loadSkinData ( var id, var skindata) |
load skin data from bundle More... | |
local | loadSkinData ( local id, local 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 | |
bool | loadJson (const std::string &path) |
var | loadJson ( var path) |
local | loadJson ( local path) |
bool | loadMeshDataJson (MeshData *meshdata) |
bool | loadSkinDataJson (SkinData *skindata) |
var | loadSkinDataJson ( var skindata) |
local | loadSkinDataJson ( local skindata) |
bool | loadMaterialDataJson (MaterialData *materialdata) |
local | loadMaterialDataJson ( local materialdata) |
bool | loadAnimationDataJson (Animation3DData *animationdata) |
bool | loadBinary (const std::string &path) |
load data in binary More... | |
var | loadBinary ( var path) |
load data in binary More... | |
local | loadBinary ( local path) |
load data in binary More... | |
bool | loadMeshDataBinary (MeshData *meshdata) |
load mesh data in binary More... | |
var | loadMeshDataBinary ( var meshdata) |
load mesh data in binary More... | |
local | loadMeshDataBinary ( local meshdata) |
load mesh data in binary More... | |
bool | loadSkinDataBinary (SkinData *skindata) |
load skin data in binary More... | |
var | loadSkinDataBinary ( var skindata) |
load skin data in binary More... | |
local | loadSkinDataBinary ( local skindata) |
load skin data in binary More... | |
bool | loadMaterialDataBinary (MaterialData *materialdata) |
load material data in binary More... | |
local | loadMaterialDataBinary ( local materialdata) |
load material data in binary More... | |
bool | loadAnimationDataBinary (Animation3DData *animationdata) |
load animation data in binary More... | |
local | loadAnimationDataBinary ( local animationdata) |
load animation data in binary More... | |
GLenum | parseGLType (const std::string &str) |
get define data type More... | |
var | parseGLType ( var str) |
get define data type More... | |
local | parseGLType ( local str) |
get define data type More... | |
unsigned int | parseGLProgramAttribute (const std::string &str) |
get vertex attribute type More... | |
void | getModelRelativePath (const std::string &path) |
var | getModelRelativePath ( var path) |
local | getModelRelativePath ( local path) |
Reference * | seekToFirstType (unsigned int type) |
local | seekToFirstType ( local type) |
~Bundle3D () | |
~Bundle3D () |
Protected Attributes | |
CC_CONSTRUCTOR_ACCESS | __pad0__: Bundle3D() |
std::string | _modelRelativePath |
local | _modelRelativePath |
std::string | _path |
var | _path |
local | _path |
char * | _jsonBuffer |
var | _jsonBuffer |
local | _jsonBuffer |
rapidjson::Document | _jsonReader |
var | _jsonReader |
local | _jsonReader |
Data * | _binaryBuffer |
var | _binaryBuffer |
local | _binaryBuffer |
BundleReader | _binaryReader |
var | _binaryReader |
local | _binaryReader |
unsigned int | _referenceCount |
var | _referenceCount |
local | _referenceCount |
Reference * | _references |
var | _references |
local | _references |
bool | _isBinary |
var | _isBinary |
local | _isBinary |
Static Protected Attributes | |
static Bundle3D * | _instance |
Defines a bundle file that contains a collection of assets.
Mesh, Material, MeshSkin, Animation There are two types of bundle files, c3t and c3b. c3t text file c3b binary file
|
protected |
|
protected |
|
protected |
void clear | ( | ) |
var clear | ( | ) |
local clear | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
bool load | ( | const std::string & | path | ) |
load a file.
You must load a file first, then call loadMeshData, loadSkinData, and so on
path | File to be loaded |
var load | ( | var | path | ) |
load a file.
You must load a file first, then call loadMeshData, loadSkinData, and so on
path | File to be loaded |
local load | ( | local | path | ) |
load a file.
You must load a file first, then call loadMeshData, loadSkinData, and so on
path | File to be loaded |
bool loadAnimationData | ( | const std::string & | id, |
Animation3DData * | animationdata | ||
) |
load material data from bundle
id | The 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
id | The 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
id | The ID of the animation, load the first animation in the bundle if it is empty |
|
protected |
load animation data in binary
animationdata | The animation data pointer |
|
protected |
load animation data in binary
animationdata | The animation data pointer |
|
protected |
load animation data in binary
animationdata | The animation data pointer |
|
protected |
|
protected |
|
protected |
|
protected |
load data in binary
path | The c3b file path |
|
protected |
load data in binary
path | The c3b file path |
|
protected |
load data in binary
path | The c3b file path |
|
protected |
|
protected |
|
protected |
bool loadMaterialData | ( | const std::string & | id, |
MaterialData * | materialdata | ||
) |
load material data from bundle
id | The 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
id | The 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
id | The ID of the material, load the first Material in the bundle if it is empty |
|
protected |
load material data in binary
materialdata | The material pointer |
|
protected |
load material data in binary
materialdata | The material pointer |
|
protected |
load material data in binary
materialdata | The material pointer |
|
protected |
|
protected |
|
protected |
bool loadMeshData | ( | const std::string & | id, |
MeshData * | meshdata | ||
) |
load mesh data from bundle
id | The 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
id | The 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
id | The ID of the mesh, load the first Mesh in the bundle if it is empty |
|
protected |
load mesh data in binary
meshdata | The mesh data pointer |
|
protected |
load mesh data in binary
meshdata | The mesh data pointer |
|
protected |
load mesh data in binary
meshdata | The mesh data pointer |
|
protected |
|
protected |
|
protected |
bool loadSkinData | ( | const std::string & | id, |
SkinData * | skindata | ||
) |
load skin data from bundle
id | The 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
id | The 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
id | The ID of the skin, load the first Skin in the bundle if it is empty |
|
protected |
load skin data in binary
skindata | The skin data pointer |
|
protected |
load skin data in binary
skindata | The skin data pointer |
|
protected |
load skin data in binary
skindata | The skin data pointer |
|
protected |
|
protected |
|
protected |
|
protected |
get vertex attribute type
str | The type in string |
|
protected |
get vertex attribute type
str | The type in string |
|
protected |
get vertex attribute type
str | The type in string |
|
protected |
get define data type
str | The type in string |
|
protected |
get define data type
str | The type in string |
|
protected |
get define data type
str | The type in string |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |