From 66e764be6be316c31a35bf62879a8bfc77f12006 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Tue, 18 Mar 2025 21:15:22 -0400 Subject: [PATCH] make struct --- CMakeLists.txt | 2 +- include/blt/gfx/renderer/batch_2d_renderer.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c8fef9..34e35b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.25) include(FetchContent) -set(BLT_GRAPHICS_VERSION 2.0.0) +set(BLT_GRAPHICS_VERSION 2.0.1) 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 aa403b1..89b184d 100644 --- a/include/blt/gfx/renderer/batch_2d_renderer.h +++ b/include/blt/gfx/renderer/batch_2d_renderer.h @@ -105,7 +105,7 @@ namespace blt::gfx std::vector lines; }; - class curve2d_t + struct curve2d_t { public: curve2d_t(vec2 p0, vec2 p1, vec2 p2); @@ -117,7 +117,6 @@ namespace blt::gfx [[nodiscard]] curve2d_mesh_data_t to_mesh(i32 segments, f32 thickness = 1.0) const; - private: vec2 m_p0, m_p1, m_p2, m_p3; };