GLUS
Macros | Functions
glus_wavefront.c File Reference
#include "GL/glus.h"

Macros

#define GLUS_MAX_OBJECTS   1
 
#define GLUS_MAX_ATTRIBUTES   (GLUS_MAX_VERTICES/GLUS_VERTICES_DIVISOR)
 
#define GLUS_MAX_TRIANGLE_ATTRIBUTES   GLUS_MAX_VERTICES
 
#define GLUS_BUFFERSIZE   1024
 

Functions

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

Macro Definition Documentation

#define GLUS_BUFFERSIZE   1024
#define GLUS_MAX_ATTRIBUTES   (GLUS_MAX_VERTICES/GLUS_VERTICES_DIVISOR)
#define GLUS_MAX_OBJECTS   1
#define GLUS_MAX_TRIANGLE_ATTRIBUTES   GLUS_MAX_VERTICES

Function Documentation

GLUSboolean _glusWavefrontParse ( const GLUSchar filename,
GLUSshape shape,
GLUSwavefront wavefront 
)
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.
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.