setters
parent
15c2729faa
commit
82f8bdb081
|
@ -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})
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue