Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
tinyobj_loader_c.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tinyobj_material_t
 
struct  tinyobj_shape_t
 
struct  tinyobj_vertex_index_t
 
struct  tinyobj_attrib_t
 

Macros

#define TINYOBJ_FLAG_TRIANGULATE   (1 << 0)
 
#define TINYOBJ_INVALID_INDEX   (0x80000000)
 
#define TINYOBJ_SUCCESS   (0)
 
#define TINYOBJ_ERROR_EMPTY   (-1)
 
#define TINYOBJ_ERROR_INVALID_PARAMETER   (-2)
 
#define TINYOBJ_ERROR_FILE_OPERATION   (-3)
 

Functions

int tinyobj_parse_obj (tinyobj_attrib_t *attrib, tinyobj_shape_t **shapes, unsigned int *num_shapes, tinyobj_material_t **materials, unsigned int *num_materials, const char *buf, unsigned int len, unsigned int flags)
 
int tinyobj_parse_mtl_file (tinyobj_material_t **materials_out, unsigned int *num_materials_out, const char *filename)
 
void tinyobj_attrib_init (tinyobj_attrib_t *attrib)
 
void tinyobj_attrib_free (tinyobj_attrib_t *attrib)
 
void tinyobj_shapes_free (tinyobj_shape_t *shapes, unsigned int num_shapes)
 
void tinyobj_materials_free (tinyobj_material_t *materials, unsigned int num_materials)
 

Macro Definition Documentation

◆ TINYOBJ_ERROR_EMPTY

#define TINYOBJ_ERROR_EMPTY   (-1)

Definition at line 86 of file tinyobj_loader_c.h.

◆ TINYOBJ_ERROR_FILE_OPERATION

#define TINYOBJ_ERROR_FILE_OPERATION   (-3)

Definition at line 88 of file tinyobj_loader_c.h.

◆ TINYOBJ_ERROR_INVALID_PARAMETER

#define TINYOBJ_ERROR_INVALID_PARAMETER   (-2)

Definition at line 87 of file tinyobj_loader_c.h.

◆ TINYOBJ_FLAG_TRIANGULATE

#define TINYOBJ_FLAG_TRIANGULATE   (1 << 0)

Definition at line 81 of file tinyobj_loader_c.h.

◆ TINYOBJ_INVALID_INDEX

#define TINYOBJ_INVALID_INDEX   (0x80000000)

Definition at line 83 of file tinyobj_loader_c.h.

◆ TINYOBJ_SUCCESS

#define TINYOBJ_SUCCESS   (0)

Definition at line 85 of file tinyobj_loader_c.h.

Function Documentation

◆ tinyobj_attrib_free()

void tinyobj_attrib_free ( tinyobj_attrib_t attrib)

◆ tinyobj_attrib_init()

void tinyobj_attrib_init ( tinyobj_attrib_t attrib)

◆ tinyobj_materials_free()

void tinyobj_materials_free ( tinyobj_material_t materials,
unsigned int  num_materials 
)
+ Here is the caller graph for this function:

◆ tinyobj_parse_mtl_file()

int tinyobj_parse_mtl_file ( tinyobj_material_t **  materials_out,
unsigned int *  num_materials_out,
const char *  filename 
)
+ Here is the caller graph for this function:

◆ tinyobj_parse_obj()

int tinyobj_parse_obj ( tinyobj_attrib_t attrib,
tinyobj_shape_t **  shapes,
unsigned int *  num_shapes,
tinyobj_material_t **  materials,
unsigned int *  num_materials,
const char *  buf,
unsigned int  len,
unsigned int  flags 
)

◆ tinyobj_shapes_free()

void tinyobj_shapes_free ( tinyobj_shape_t shapes,
unsigned int  num_shapes 
)