From f6b3e12d73b9ec0d437e5df9f179f51d65c50f78 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 1 May 2024 03:27:37 -0400 Subject: [PATCH] bed --- CMakeLists.txt | 2 +- lib/BLT-With-Graphics-Template | 2 +- src/main.cpp | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) 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;