Skip to content

Releases: devdad/raylib

v5.6

Choose a tag to compare

@devdad devdad released this 16 Dec 19:48
Add LoadModelEx and UploadModel functions

To enable custom model and mesh batching in projects that use the official raylib and instancing, it is essential to have control over whether or not meshes are automatically uploaded to the GPU. In my opinion, this is the cleanest solution for achieving that flexibility.

New functions added:
// Load model from files (mesh and material) without automatically uploading vertex data to the GPU Model LoadModelEx(const char *fileName, bool upload) // Upload model data to the GPU (RAM and/or VRAM)
void UploadModel(const Model *model, bool dynamic)

The existing LoadModel function now calls LoadModelEx with upload = true.

Additionally, fixed LoadOBJ to match the behavior of other load functions by not automatically uploading meshes.

v5.5: Update rmodels.c remove UploadMeshes inside LoadOBJ function

Choose a tag to compare

@devdad devdad released this 05 Dec 09:29
d870391

Added functions:
//Load model from files (mesh and material) bool to chose to uploade vertex data to GPU or not

  • Model LoadModelEx(const char *fileName, bool upload)

// Upload model data to GPU (RAM and/or VRAM) manualy

  • void UploadModel(const Model *model, bool dynamic)

Fix LoadOBJ to not Upload Meshes to be consistent with other Load functions

5.5

5.5

Choose a tag to compare

@github-actions github-actions released this 05 Dec 09:30
d870391
Update rmodels.c remove UploadMeshes inside LoadOBJ function

just removed already commented out code , inside LoadOBJ function auto UploadMeshes to be consistent as other Load functions