]> git.lizzy.rs Git - shadowclad.git/blob - src/engine/ui.c
Migrate to GLFW 3
[shadowclad.git] / src / engine / ui.c
1 #include "ui.h"
2
3 #include "render.h"
4
5 void resizeStage(GLFWwindow* window, int width, int height) {
6         if (height == 0)
7                 height = 1;
8
9         glViewport(0, 0, width, height);
10
11         viewportAspectRatio = (float) width / (float) height;
12 }