mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Added logging of window size.
This commit is contained in:
parent
13a438c91e
commit
da86ba8062
|
@ -62,6 +62,8 @@ static void key_callback(GLFWwindow window, int key, int action)
|
|||
|
||||
static void size_callback(GLFWwindow window, int width, int height)
|
||||
{
|
||||
printf("%0.2f Size %ix%i\n", glfwGetTime(), width, height);
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user