Go to the source code of this file.
|
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.
|
|