]> git.lizzy.rs Git - shadowclad.git/blob - ui.c
Render player character and make the camera follow it
[shadowclad.git] / ui.c
1 #include <GL/gl.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 }