Brett 2024-01-10 12:38:51 -05:00
parent 206dc3f5b2
commit c25500a0b9
1 changed files with 8 additions and 2 deletions

View File

@ -15,7 +15,7 @@ blt::gfx::resource_manager resources;
blt::gfx::batch_renderer_2d renderer_2d(resources);
blt::gfx::first_person_camera camera;
blt::gfx::vertex_array** vao;
std::vector<blt::gfx::vertex_array*> vao;
float x = 0, y = 0, z = 0;
float bx = 500, by = 500;
@ -59,8 +59,14 @@ void init()
auto object = blt::gfx::quick_load("../resources/models/complex_cube.obj");
vbo_t vertices_vbo;
vertices_vbo.allocate(static_cast<long>(object.vertex_data().size() * sizeof(blt::gfx::constructed_vertex_t)), object.vertex_data().data());
vertices_vbo.allocate(static_cast<long>(object.vertex_data().size() * sizeof(blt::gfx::constructed_vertex_t)));
for (auto obj : object.objects())
{
vbo_t indices_vbo;
indices_vbo.allocate(static_cast<long>(obj.indices.size() * sizeof(blt::gfx::triangle_t)), obj.indices.data());
}
global_matrices.create_internals();
resources.load_resources();