diff options
Diffstat (limited to 'src/zoom.cpp')
-rw-r--r-- | src/zoom.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zoom.cpp b/src/zoom.cpp index d9df6d4..b222286 100644 --- a/src/zoom.cpp +++ b/src/zoom.cpp @@ -18,9 +18,11 @@ */ #include "Game.h" +#include "MathUtil.h" #include "config.h" #include "gl.h" + #ifdef _WIN32 #else #include <iostream> @@ -38,8 +40,7 @@ void resize(int width, int height) glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - gluPerspective(50.0f, (GLfloat)width/(GLfloat)height, 0.1, 1000); + glLoadMatrixf(Zoom::MathUtil::perspective(50.0f, (float)width/(float)height, 0.1).array); glMatrixMode(GL_MODELVIEW); |