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