mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-10 05:18:14 +00:00
ADDED: UploadMesh() #1529
Upload mesh data to GPU and get VAO/VBO identifiers
This commit is contained in:
@@ -849,6 +849,12 @@ Mesh *LoadMeshes(const char *fileName, int *meshCount)
|
||||
return meshes;
|
||||
}
|
||||
|
||||
// Upload mesh vertex data to GPU
|
||||
void UploadMesh(Mesh *mesh)
|
||||
{
|
||||
rlLoadMesh(&mesh, false); // Static mesh by default
|
||||
}
|
||||
|
||||
// Unload mesh from memory (RAM and/or VRAM)
|
||||
void UnloadMesh(Mesh mesh)
|
||||
{
|
||||
|
Reference in New Issue
Block a user