bed
parent
d20124af80
commit
f6b3e12d73
|
@ -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)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 96521c51be8921e919b19059317c53465bc63b39
|
||||
Subproject commit 2afdfbf3a9f8bdbbf085318b1933e9458c273707
|
|
@ -20,6 +20,7 @@
|
|||
#include "blt/gfx/renderer/batch_2d_renderer.h"
|
||||
#include "blt/gfx/renderer/camera.h"
|
||||
#include <blt/gfx/framebuffer.h>
|
||||
#include <blt/gfx/raycast.h>
|
||||
#include <imgui.h>
|
||||
#include <memory>
|
||||
#include <random>
|
||||
|
@ -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<float>(data.width), static_cast<float>(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;
|
||||
|
|
Loading…
Reference in New Issue