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

.obj file Loader More...

#include <CCObjLoader.h>

Classes

struct  material_t
 model's material struct More...
 
struct  mesh_t
 model's indices struct More...
 
struct  shape_t
 model's shape struct More...
 
struct  shapes_t
 model's shapes struct More...
 

Static Public Member Functions

static std::string LoadObj (shapes_t &shapes, const char *filename, const char *mtl_basepath=NULL)
 Loads .obj from a file. More...
 
local LoadObj ( local shapes, local filename, local NULL)
 Loads .obj from a file. More...
 

Detailed Description

.obj file Loader

Member Function Documentation

static std::string LoadObj ( shapes_t shapes,
const char *  filename,
const char *  mtl_basepath = NULL 
)
static

Loads .obj from a file.

Parameters
shapeswill be filled with parsed shape data
filenamethe .obj file path .
mtl_basepathIt's optional, and used for base path for .mtl file
Returns
The function returns error string, return empty string when loading .obj success.
var LoadObj ( var  shapes,
var  filename,
var  mtl_basepath = NULL 
)
static

Loads .obj from a file.

Parameters
shapeswill be filled with parsed shape data
filenamethe .obj file path .
mtl_basepathIt's optional, and used for base path for .mtl file
Returns
The function returns error string, return empty string when loading .obj success.
local LoadObj ( local  shapes,
local  filename,
local  mtl_basepath = NULL 
)
static

Loads .obj from a file.

Parameters
shapeswill be filled with parsed shape data
filenamethe .obj file path .
mtl_basepathIt's optional, and used for base path for .mtl file
Returns
The function returns error string, return empty string when loading .obj success.

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