Add MeshUnmanaged (#299)

This commit is contained in:
furudbat
2024-03-08 22:58:19 +01:00
parent e289c0e86b
commit e35ca6d7ec
4 changed files with 286 additions and 218 deletions

View File

@@ -25,7 +25,7 @@ int main(void)
raylib::Image imMap("resources/cubicmap.png"); // Load cubicmap image (RAM)
raylib::Texture cubicmap(imMap); // Convert image to texture to display (VRAM)
Mesh mesh = raylib::Mesh::Cubicmap(imMap, Vector3{ 1.0f, 1.0f, 1.0f });
raylib::MeshUnmanaged mesh = raylib::MeshUnmanaged::Cubicmap(imMap, Vector3{ 1.0f, 1.0f, 1.0f }); // Use MeshUnmanaged, Mesh will be handled by Model
raylib::Model model(mesh);
// NOTE: By default each cube is mapped to one part of texture atlas