main
Brett 2024-04-14 17:35:06 -04:00
parent 5872ea945c
commit b739e7057e
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25) cmake_minimum_required(VERSION 3.25)
project(graphs VERSION 0.0.4) project(graphs VERSION 0.0.5)
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)

@ -1 +1 @@
Subproject commit d40b917c32c6c135c3a2f939ee9436d85d94bd64 Subproject commit 894355810995472652b83b9f18345d0c8c9fc3d2

View File

@ -54,9 +54,9 @@ void update(std::int32_t width, std::int32_t height)
if (y > 256) if (y > 256)
sy *= -1; sy *= -1;
renderer_2d.drawLine(blt::vec4{1, 0, 1, 1}, blt::vec2{x,y}, blt::vec2{500, 500}, 5.0f); renderer_2d.drawLine(blt::vec4{1, 0, 1, 1}, 0.0f, blt::vec2{x,y}, blt::vec2{500, 500}, 5.0f);
renderer_2d.drawLine(blt::vec4{1, 0, 0, 1}, blt::vec2{0,150}, blt::vec2{240, 0}, 12.0f); renderer_2d.drawLine(blt::vec4{1, 0, 0, 1}, 0.0f, blt::vec2{0,150}, blt::vec2{240, 0}, 12.0f);
renderer_2d.drawPoint(blt::vec4{0, 1, 0, 1}, blt::vec2{500, 500}, 50.0f); renderer_2d.drawPoint(blt::vec4{0, 1, 0, 1}, -0.4f, blt::vec2{500, 500}, 50.0f);
camera.update(); camera.update();
camera.update_view(global_matrices); camera.update_view(global_matrices);