MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_size()

void MayaFlux::Core::GlfwWindow::set_size ( uint32_t  width,
uint32_t  height 
)
overridevirtual

Resize the window.

Parameters
widthNew window width
heightNew window height

Implements MayaFlux::Core::Window.

Definition at line 241 of file GlfwWindow.cpp.

242{
243 if (m_window) {
244 glfwSetWindowSize(m_window, static_cast<int>(width), static_cast<int>(height));
245 }
246
247 m_create_info.width = width;
248 m_create_info.height = height;
249}
WindowCreateInfo m_create_info
uint32_t width
Initial window dimensions.

References MayaFlux::Core::WindowCreateInfo::height, m_create_info, m_window, and MayaFlux::Core::WindowCreateInfo::width.