main
parent
58eafb1636
commit
206dc3f5b2
|
@ -1 +1 @@
|
||||||
Subproject commit a1b06823fe2d964a62fda99385499b218cf5cea5
|
Subproject commit 240ab5890b2e8da294937a1710b021ac3f271472
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6675317107257c2cc16c947b359d557821d85bf2
|
Subproject commit cfab14287405a0d34f6a0fec1336f46415728fcf
|
|
@ -8,12 +8,15 @@
|
||||||
#include "blt/gfx/renderer/resource_manager.h"
|
#include "blt/gfx/renderer/resource_manager.h"
|
||||||
#include "blt/gfx/renderer/batch_2d_renderer.h"
|
#include "blt/gfx/renderer/batch_2d_renderer.h"
|
||||||
#include "blt/gfx/renderer/camera.h"
|
#include "blt/gfx/renderer/camera.h"
|
||||||
|
#include <blt/gfx/loader/obj_loader.h>
|
||||||
|
|
||||||
blt::gfx::matrix_state_manager global_matrices;
|
blt::gfx::matrix_state_manager global_matrices;
|
||||||
blt::gfx::resource_manager resources;
|
blt::gfx::resource_manager resources;
|
||||||
blt::gfx::batch_renderer_2d renderer_2d(resources);
|
blt::gfx::batch_renderer_2d renderer_2d(resources);
|
||||||
blt::gfx::first_person_camera camera;
|
blt::gfx::first_person_camera camera;
|
||||||
|
|
||||||
|
blt::gfx::vertex_array** vao;
|
||||||
|
|
||||||
float x = 0, y = 0, z = 0;
|
float x = 0, y = 0, z = 0;
|
||||||
float bx = 500, by = 500;
|
float bx = 500, by = 500;
|
||||||
float mx = 0, my = -9.8;
|
float mx = 0, my = -9.8;
|
||||||
|
@ -53,6 +56,12 @@ void init()
|
||||||
resources.enqueue("../resources/textures/cumdollar.jpg", "ibuythat");
|
resources.enqueue("../resources/textures/cumdollar.jpg", "ibuythat");
|
||||||
resources.enqueue("../resources/textures/dfoedbi-28157978-1555-45c3-b2f4-d5e5fe25b253.png", "niko");
|
resources.enqueue("../resources/textures/dfoedbi-28157978-1555-45c3-b2f4-d5e5fe25b253.png", "niko");
|
||||||
|
|
||||||
|
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)));
|
||||||
|
|
||||||
global_matrices.create_internals();
|
global_matrices.create_internals();
|
||||||
resources.load_resources();
|
resources.load_resources();
|
||||||
renderer_2d.create();
|
renderer_2d.create();
|
||||||
|
|
Loading…
Reference in New Issue