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

#include <CCObjLoader.h>

Classes

struct  material_t
 
struct  mesh_t
 
struct  shape_t
 
struct  shapes_t
 

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...
 

Member Function Documentation

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

Loads .obj from a file.

'shapes' will be filled with parsed shape data The function returns error string. Returns empty string when loading .obj success. 'mtl_basepath' is optional, and used for base path for .mtl file.

var LoadObj ( var  shapes,
var  filename,
var  mtl_basepath = NULL 
)
static

Loads .obj from a file.

'shapes' will be filled with parsed shape data The function returns error string. Returns empty string when loading .obj success. 'mtl_basepath' is optional, and used for base path for .mtl file.

local LoadObj ( local  shapes,
local  filename,
local  mtl_basepath = NULL 
)
static

Loads .obj from a file.

'shapes' will be filled with parsed shape data The function returns error string. Returns empty string when loading .obj success. 'mtl_basepath' is optional, and used for base path for .mtl file.


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