fix init order

main
Brett 2024-04-29 21:45:25 -04:00
parent 3af6b9c4a0
commit 7d2028cc55
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.25)
set(BLT_GRAPHICS_VERSION 0.11.5)
set(BLT_GRAPHICS_VERSION 0.11.6)
set(BLT_GRAPHICS_TEST_VERSION 0.0.1)
project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION})

View File

@ -40,8 +40,8 @@ namespace blt::gfx
std::int32_t sync_interval = 0;
window_data(std::string title, std::function<void(const window_data&)> init, std::function<void(const window_data&)> update,
std::int32_t width = 640, std::int32_t height = 480):
title(std::move(title)), width(width), height(height), init(std::move(init)), update(std::move(update))
std::int32_t width = 640, std::int32_t height = 480): init(std::move(init)), update(std::move(update)),
title(std::move(title)), width(width), height(height)
{}
inline void call_init() const

@ -1 +1 @@
Subproject commit 69e6a505d6dda11d4b510901a7b344315bbc5ebe
Subproject commit 86fd4a2a9aa18b4dbe8b3688849f7ef81d54f27c