diff options
Diffstat (limited to 'src/client/view.cc')
-rw-r--r-- | src/client/view.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/view.cc b/src/client/view.cc index af9037b..c9a7b8a 100644 --- a/src/client/view.cc +++ b/src/client/view.cc @@ -4,9 +4,7 @@ the terms and conditions of the GNU General Public License version 2 */ -#include "view.h" -#include "video.h" -#include "camera.h" +#include "client.h" #include "shipdrawer.h" #include "stardrawer.h" #include "gl/osiriongl.h" @@ -53,7 +51,7 @@ void View::reset() { //glu::perspective( 64.0, video::ratio, 1.0, 1024.0 ); const float frustumsize=0.5f; - gl::frustum( -frustumsize * Video::ratio, frustumsize * Video::ratio, -frustumsize, frustumsize, 1.0f, 1024.0f); + gl::frustum( -frustumsize * video.ratio, frustumsize * video.ratio, -frustumsize, frustumsize, 1.0f, 1024.0f); /* map world coordinates to GL coordinates @@ -144,7 +142,7 @@ void View::draw(float elapsed) gl::loadidentity(); // Camera transformation - Camera::draw(elapsed); + camera.draw(elapsed); // draw the world draw_world(elapsed); |