From f8e9eab39a5e96d478762d06e27ec38f80128435 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 21 Oct 2007 23:54:57 +0000 Subject: namespace and class cleanups --- src/client/view.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/client/view.cc') 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); -- cgit v1.2.3