diff --git a/CMakeLists.txt b/CMakeLists.txt index 547431a..3727a37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(graphs VERSION 0.0.23) +project(graphs VERSION 0.0.24) 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 96521c5..2afdfbf 160000 --- a/lib/BLT-With-Graphics-Template +++ b/lib/BLT-With-Graphics-Template @@ -1 +1 @@ -Subproject commit 96521c51be8921e919b19059317c53465bc63b39 +Subproject commit 2afdfbf3a9f8bdbbf085318b1933e9458c273707 diff --git a/src/main.cpp b/src/main.cpp index 108f3db..d4ed5cc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,6 +20,7 @@ #include "blt/gfx/renderer/batch_2d_renderer.h" #include "blt/gfx/renderer/camera.h" #include +#include #include #include #include @@ -699,6 +700,10 @@ void update(const blt::gfx::window_data& data) 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()), + global_matrices.getView2D(), global_matrices.getOrtho()) << "\n"; + auto currentTime = blt::system::nanoTime(); auto diff = currentTime - lastTime; lastTime = currentTime;