From a237a2d7723b94df6cd3e91401ec28388de6f1a0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 21 Oct 2007 23:02:47 +0000 Subject: namespace cleanup --- src/gl/box.cc | 7 ++++--- src/gl/box.h | 9 +++++---- src/gl/osiriongl.cc | 13 +++++++------ src/gl/osiriongl.h | 15 ++++++++++----- src/gl/sphere.cc | 10 +++++----- src/gl/sphere.h | 9 +++++---- 6 files changed, 36 insertions(+), 27 deletions(-) (limited to 'src/gl') diff --git a/src/gl/box.cc b/src/gl/box.cc index 67a8ed0..fea5d28 100644 --- a/src/gl/box.cc +++ b/src/gl/box.cc @@ -1,10 +1,11 @@ -/* box.cc - This file is part of the Osirion project +/* + gl/box.cc + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 */ // project headers #include "box.h" -#include "osiriongl.h" namespace gl { diff --git a/src/gl/box.h b/src/gl/box.h index f612243..8fb4c45 100644 --- a/src/gl/box.h +++ b/src/gl/box.h @@ -1,12 +1,13 @@ -/* box.h - This file is part of the Osirion project +/* + gl/box.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 */ #ifndef __INCLUDED_BOX_H__ #define __INCLUDED_BOX_H__ -#include "common/vector3f.h" -#include "common/color.h" +#include "osiriongl.h" namespace gl { diff --git a/src/gl/osiriongl.cc b/src/gl/osiriongl.cc index 95e12d1..08462e7 100644 --- a/src/gl/osiriongl.cc +++ b/src/gl/osiriongl.cc @@ -1,12 +1,13 @@ -/* gl.cc - * This file is part of the Osirion project - */ - -// SDL headers -#include +/* + gl/osiriongl.cc + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ #include "osiriongl.h" +#include + namespace gl { diff --git a/src/gl/osiriongl.h b/src/gl/osiriongl.h index 26ff131..5a1f9f9 100644 --- a/src/gl/osiriongl.h +++ b/src/gl/osiriongl.h @@ -1,23 +1,28 @@ -/* gl.h - This file is part of the Osirion project +/* + gl/osiriongl.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 */ #ifndef __INCLUDED_OSIRIONGL_H__ #define __INCLUDED_OSIRIONGL_H__ -// OpenGL headers -#include - // project headers #include "common/vector3f.h" #include "common/color.h" +// OpenGL headers +#include + /// wrapper namespace for OpenGL operations /*! The GL namespace provides a wrapper to the OpenGL library functions. * All methods take floats or Vector3f and Color as parameters. */ namespace gl { + using common::Vector3f; + using common::Color; + /// initialize the OpenGL subsystem void init(); diff --git a/src/gl/sphere.cc b/src/gl/sphere.cc index 5e4e931..bd724f5 100644 --- a/src/gl/sphere.cc +++ b/src/gl/sphere.cc @@ -1,11 +1,11 @@ -/* sphere.cc - This file is part of the Osirion project +/* + gl/sphere.cc + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 */ -#include "common/functions.h" - -#include "osiriongl.h" #include "sphere.h" +#include "common/functions.h" namespace gl { diff --git a/src/gl/sphere.h b/src/gl/sphere.h index f2bbf0a..2e237c5 100644 --- a/src/gl/sphere.h +++ b/src/gl/sphere.h @@ -1,12 +1,13 @@ -/* sphere.h - This file is part of the Osirion project +/* + gl/sphere.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 */ #ifndef __INCLUDED_SPHERE_H__ #define __INCLUDED_SPHERE_H__ -#include "common/vector3f.h" -#include "common/color.h" +#include "osiriongl.h" namespace gl { -- cgit v1.2.3