MayaFlux 0.2.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 251 of file GlfwWindow.cpp.

252{
253 if (m_window) {
254 glfwSetWindowSize(m_window, static_cast<int>(width), static_cast<int>(height));
255 }
256
257 m_create_info.width = width;
258 m_create_info.height = height;
259}
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.