GLUS
Data Structures | Typedefs | Functions
glus_wavefront.h File Reference

Go to the source code of this file.

Data Structures

struct  _GLUSmaterial
 Structure for holding material data. More...
 
struct  _GLUSmaterialList
 Structure for holding material data list. More...
 
struct  _GLUSgroup
 Group of geometry. More...
 
struct  _GLUSgroupList
 Structure for holding the group data list. More...
 
struct  _GLUSwavefront
 Structure for a complete wavefront object file. More...
 

Typedefs

typedef struct _GLUSmaterial GLUSmaterial
 Structure for holding material data. More...
 
typedef struct _GLUSmaterialList GLUSmaterialList
 Structure for holding material data list. More...
 
typedef struct _GLUSgroup GLUSgroup
 Group of geometry. More...
 
typedef struct _GLUSgroupList GLUSgroupList
 Structure for holding the group data list. More...
 
typedef struct _GLUSwavefront GLUSwavefront
 Structure for a complete wavefront object file. More...
 

Functions

GLUSAPI GLUSboolean GLUSAPIENTRY glusWavefrontLoad (const GLUSchar *filename, GLUSwavefront *wavefront)
 Loads a wavefront object file with groups and materials. More...
 
GLUSAPI GLUSvoid GLUSAPIENTRY glusWavefrontDestroy (GLUSwavefront *wavefront)
 Destroys the wavefront structure by freeing the allocated memory. More...
 

Typedef Documentation

typedef struct _GLUSgroup GLUSgroup

Group of geometry.

typedef struct _GLUSgroupList GLUSgroupList

Structure for holding the group data list.

typedef struct _GLUSmaterial GLUSmaterial

Structure for holding material data.

Structure for holding material data list.

typedef struct _GLUSwavefront GLUSwavefront

Structure for a complete wavefront object file.

Function Documentation

GLUSAPI GLUSvoid GLUSAPIENTRY glusWavefrontDestroy ( GLUSwavefront wavefront)

Destroys the wavefront structure by freeing the allocated memory.

VBOs, VAOs and textures are not freed.

Parameters
wavefrontThe structure which contains the dynamic allocated wavefront data, which will be freed by this function.
GLUSAPI GLUSboolean GLUSAPIENTRY glusWavefrontLoad ( const GLUSchar filename,
GLUSwavefront wavefront 
)

Loads a wavefront object file with groups and materials.

Parameters
filenameThe name of the wavefront file including extension.
wavefrontThe data is stored into this structure.
Returns
GLUS_TRUE, if loading succeeded.