Modern OpenGL programming in Python - part 12 - resizable viewport

preview_player
Показать описание
Make the OpenGL viewport resizable by creating a window resize callback function, and call it whenever the window gets resized using the glfw set window size callback.

Рекомендации по теме
Комментарии
Автор

Many thanks, even though this was a Python tutorial, I was able to directly apply it to C++!!!

mitchwar
Автор

glfw.setAspectRatio can also be used to locking the resize to a specific ratio. They added it in 3.2.1 it seems. The lazy way to do it in windowed mode I guess.

SuperGrimmy
welcome to shbcf.ru