Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
obj_loader.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Face
 Structure representing a face of a 3D model. More...
 
struct  LoadingModelBuffer
 Structure to hold the data of a 3D model being loaded. More...
 

Macros

#define MAX_VERTEX_PER_FACE   10
 Maximum number of vertices per face.
 

Functions

int malloc_obj (ModelObjectData *obj, LoadingModelBuffer *buffer, u32 vim, u32 fim, u32 vnim, u32 vtim)
 Allocates memory for an ModelObjectData's vertex, face, normal, and texture data.
 
void close_realloc_obj (ModelObjectData *obj, LoadingModelBuffer *buffer, u32 vi, u32 fi, u32 vni, u32 vti)
 Cleans up and reallocates the memory for the vertex data and faces of a 3D object, and generates the Vertex Array Object (VAO) for rendering.
 
int load_obj_model (const char *path, ModelData *modelPtr)
 Loads a 3D model from an OBJ file, including its associated materials, vertices, normals, and texture coordinates.