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>2008-01-30 17:36:03 +0000
committerStijn Buys <ingar@osirion.org>2008-01-30 17:36:03 +0000
commitd584d29ac49182130d643c9221047e0acb5cfa01 (patch)
tree06f23cb1cae0a1945e88ea7f19ad80394cb35d6b /src/gl/box.h
parentbac8343bbc9f1e4cf97a561c732054539f21f03d (diff)
accomodate the new modules
Diffstat (limited to 'src/gl/box.h')
-rw-r--r--src/gl/box.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/gl/box.h b/src/gl/box.h
index 8fb4c45..ce4a650 100644
--- a/src/gl/box.h
+++ b/src/gl/box.h
@@ -4,10 +4,11 @@
the terms of the GNU General Public License version 2
*/
-#ifndef __INCLUDED_BOX_H__
-#define __INCLUDED_BOX_H__
+#ifndef __INCLUDED_GL_BOX_H__
+#define __INCLUDED_GL_BOX_H__
-#include "osiriongl.h"
+#include "gl/gllib.h"
+#include "math/mathlib.h"
namespace gl {
@@ -16,7 +17,7 @@ class Box
{
public:
/// create a new standard cube with edge length 1
- Box(Vector3f const & tl, Vector3f const &br);
+ Box(math::Vector3f const & tl, math::Vector3f const &br);
/// copy constructor
Box(const Box &other);
@@ -24,19 +25,20 @@ public:
Box& operator=(const Box &other);
/// top left vertex (1,1,1)
- Vector3f topleft;
+ math::Vector3f topleft;
/// bottom right vertex (-1,-1,-1)
- Vector3f bottomright;
+ math::Vector3f bottomright;
/// draw the block
void draw();
/// Top color
- Color topcolor;
+ math::Color topcolor;
/// bottom color
- Color bottomcolor;
+ math::Color bottomcolor;
};
} // namespace gl
-#endif // __INCLUDED_BOX_H__
+#endif // __INCLUDED_GL_BOX_H__
+