Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
model_loader.h File Reference

Header file for model loading functions. More...

Include dependency graph for model_loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int load_model (const char *path, ModelData **modelPtr)
 Loads a 3D model from the specified file path.
 

Detailed Description

Header file for model loading functions.

This file contains the declaration of functions used for loading 3D models.

Function Documentation

◆ load_model()

int load_model ( const char *  path,
ModelData **  modelPtr 
)

Loads a 3D model from the specified file path.

This function reads a 3D model from the given file path and stores the model data in the provided ModelData pointer.

Parameters
pathThe file path to the 3D model to be loaded.
modelPtrA pointer to a pointer of ModelData where the loaded model data will be stored.
Returns
An integer indicating the success or failure of the model loading operation. Typically, 0 indicates success, while a non-zero value indicates an error.