From ff2c8e3be8aea2c3324cd9d7c2575085a7f1b56e Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 28 Jul 2024 13:57:42 -0400 Subject: [PATCH] scaleo --- CMakeLists.txt | 2 +- include/blt/gfx/renderer/batch_2d_renderer.h | 4 ++++ libraries/BLT | 2 +- libraries/imgui | 2 +- libraries/openal-soft | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3117b40..0453743 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.25) -set(BLT_GRAPHICS_VERSION 0.13.27) +set(BLT_GRAPHICS_VERSION 0.13.28) set(BLT_GRAPHICS_TEST_VERSION 0.0.1) project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION}) diff --git a/include/blt/gfx/renderer/batch_2d_renderer.h b/include/blt/gfx/renderer/batch_2d_renderer.h index da97c29..3775911 100644 --- a/include/blt/gfx/renderer/batch_2d_renderer.h +++ b/include/blt/gfx/renderer/batch_2d_renderer.h @@ -86,6 +86,10 @@ namespace blt::gfx explicit point2d_t(const vec2f pos): pos(pos) {} + + point2d_t apply_scale(float s) const { + return {pos, scale * s}; + } }; struct render_info_t diff --git a/libraries/BLT b/libraries/BLT index 394dff9..5ab01e4 160000 --- a/libraries/BLT +++ b/libraries/BLT @@ -1 +1 @@ -Subproject commit 394dff9cc4c31ea29867c5e2507edc831a34c19b +Subproject commit 5ab01e43dfc2956f220e5f5fb663c00078928f17 diff --git a/libraries/imgui b/libraries/imgui index 231cbee..d42fa46 160000 --- a/libraries/imgui +++ b/libraries/imgui @@ -1 +1 @@ -Subproject commit 231cbee0fc4f59dbe5b8b853a11b08dc84e57c65 +Subproject commit d42fa46dc6b68863046c22467297933dbe39bb55 diff --git a/libraries/openal-soft b/libraries/openal-soft index 111397c..a3dff1d 160000 --- a/libraries/openal-soft +++ b/libraries/openal-soft @@ -1 +1 @@ -Subproject commit 111397c71a5f1c2c88e05da9c84edfdba2e472a4 +Subproject commit a3dff1d6c17d4f202f304cd4dd37bc9052709cd1