main
Brett 2024-04-15 00:31:27 -04:00
parent 15c2729faa
commit 82f8bdb081
2 changed files with 19 additions and 1 deletions

View File

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

View File

@ -41,6 +41,24 @@ namespace blt::gfx
title(std::move(title)), width(width), height(height), init(std::move(init)), update(std::move(update))
{}
window_data& setHeight(int32_t new_height)
{
window_data::height = new_height;
return *this;
}
window_data& setWidth(int32_t new_width)
{
window_data::width = new_width;
return *this;
}
window_data& setTitle(const std::string& title_str)
{
window_data::title = title_str;
return *this;
}
window_data& setContext(const window_context& ctx)
{
context = ctx;