ADDED: UploadMesh() #1529
Upload mesh data to GPU and get VAO/VBO identifiers
This commit is contained in:
parent
721768bdb0
commit
f4f208c4ae
2 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue