| 398 | } |
| 399 | |
| 400 | void Platform::set_window_properties(const Window::OptionalProperties &properties) |
| 401 | { |
| 402 | window_properties.title = properties.title.has_value() ? properties.title.value() : window_properties.title; |
| 403 | window_properties.mode = properties.mode.has_value() ? properties.mode.value() : window_properties.mode; |
| 404 | window_properties.resizable = properties.resizable.has_value() ? properties.resizable.value() : window_properties.resizable; |
| 405 | window_properties.vsync = properties.vsync.has_value() ? properties.vsync.value() : window_properties.vsync; |
| 406 | window_properties.extent.width = properties.extent.width.has_value() ? properties.extent.width.value() : window_properties.extent.width; |
| 407 | window_properties.extent.height = properties.extent.height.has_value() ? properties.extent.height.value() : window_properties.extent.height; |
| 408 | } |
| 409 | |
| 410 | std::string &Platform::get_last_error() |
| 411 | { |
no test coverage detected