diff --git a/CMakeLists.txt b/CMakeLists.txt index 3727a37..6e5aaf0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(graphs VERSION 0.0.24) +project(graphs VERSION 0.0.25) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/lib/BLT-With-Graphics-Template b/lib/BLT-With-Graphics-Template index 2afdfbf..a066d8f 160000 --- a/lib/BLT-With-Graphics-Template +++ b/lib/BLT-With-Graphics-Template @@ -1 +1 @@ -Subproject commit 2afdfbf3a9f8bdbbf085318b1933e9458c273707 +Subproject commit a066d8f6e47d63c14387ab002d30c6a87ffb1c15 diff --git a/src/main.cpp b/src/main.cpp index d4ed5cc..0e89069 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -698,10 +698,11 @@ void update(const blt::gfx::window_data& data) camera.update_view(global_matrices); global_matrices.update(); + //renderer_2d.drawPoint(blt::make_color(1, 0, 0), blt::vec2(0, 0), 50); + //renderer_2d.drawPoint(blt::make_color(1, 0, 0), blt::vec2(data.width, data.height), 50); renderer_2d.render(); - auto d2 = global_matrices.getScale2D(); - BLT_TRACE_STREAM << blt::gfx::calculateRay2D(static_cast(data.width), static_cast(data.height), blt::vec2(d2.x(), d2.y()), + BLT_TRACE_STREAM << blt::gfx::calculateRay2D(static_cast(data.width), static_cast(data.height), global_matrices.getScale2D(), global_matrices.getView2D(), global_matrices.getOrtho()) << "\n"; auto currentTime = blt::system::nanoTime();