MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / set_window_properties

Method set_window_properties

framework/platform/platform.cpp:400–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void 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
410std::string &Platform::get_last_error()
411{

Callers 3

launch_sampleMethod · 0.80
handle_optionMethod · 0.80
trigger_commandMethod · 0.80

Calls 1

has_valueMethod · 0.80

Tested by

no test coverage detected