Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2007-10-21 23:02:47 +0000
committerStijn Buys <ingar@osirion.org>2007-10-21 23:02:47 +0000
commita237a2d7723b94df6cd3e91401ec28388de6f1a0 (patch)
tree7da376d276d03fced7b94a807c0952fd32bcde08 /src/client/video.cc
parent084c6212afaa6f996091f36d0ff85ac845803a87 (diff)
namespace cleanup
Diffstat (limited to 'src/client/video.cc')
-rw-r--r--src/client/video.cc43
1 files changed, 20 insertions, 23 deletions
diff --git a/src/client/video.cc b/src/client/video.cc
index 2697585..a676d10 100644
--- a/src/client/video.cc
+++ b/src/client/video.cc
@@ -1,27 +1,24 @@
-/* video.cc
+/*
+ video.cc
This file is part of the Osirion project and is distributed under
the terms and conditions of the GNU General Public License version 2
*/
-// SDL headers
-#include <SDL/SDL.h>
+#include "video.h"
+#include "view.h"
+#include "gl/osiriongl.h"
-// C++ headers
+#include <SDL/SDL.h>
#include <iostream>
-// project headers
-#include "gl/osiriongl.h"
-#include "view.h"
+namespace client {
+int Video::width = 0;
+int Video::height = 0;
+bool Video::initialized = false;
+float Video::ratio = 1;
-namespace video
-{
-int width = 0;
-int height = 0;
-bool initialized = false;
-float ratio = 1;
-
-void reset()
+void Video::reset()
{
ratio = (float) width / (float) height;
@@ -46,10 +43,10 @@ void reset()
// Setup our viewport.
gl::viewport(0, 0, width, height );
- view::reset();
+ View::reset();
}
-void init()
+void Video::init()
{
if (initialized) {
return;
@@ -90,20 +87,20 @@ void init()
gl::init();
initialized = true;
- view::init();
+ View::init();
reset();
return;
}
-void draw(float elapsed)
+void Video::draw(float elapsed)
{
- view::draw(elapsed);
+ View::draw(elapsed);
}
-void shutdown()
+void Video::shutdown()
{
- view::shutdown();
+ client::View::shutdown();
gl::shutdown();
initialized = false;
@@ -111,4 +108,4 @@ void shutdown()
height = 0;
}
-} // namespace video
+} // namespace client