Changed Moved all vector classes into namespace OpenArena

~g2k
This commit is contained in:
2006-06-18 14:46:31 -04:00
parent fcc82248f4
commit 7e4b388fee
3 changed files with 281 additions and 279 deletions

View File

@@ -2,7 +2,7 @@
#define __vector_h__ #define __vector_h__
#include <cmath> #include <cmath>
namespace OpenArena{
class Vec3d class Vec3d
{ {
public: public:
@@ -79,5 +79,5 @@ public:
bool operator==(const Vec2i&) const; bool operator==(const Vec2i&) const;
bool operator!=(const Vec2i&) const; bool operator!=(const Vec2i&) const;
}; };
};
#endif #endif

View File

@@ -1,5 +1,6 @@
#include "../include/vector.h" #include "../include/vector.h"
namespace OpenArena{
Vec3d::Vec3d() Vec3d::Vec3d()
{ {
x=0.0f; x=0.0f;
@@ -247,3 +248,4 @@ bool Vec2i::operator!=(const Vec2i& rtOp) const
{ {
return !(x == rtOp.x && y == rtOp.y); return !(x == rtOp.x && y == rtOp.y);
} }
};

View File

@@ -411,7 +411,7 @@ Vec2i OpenArena::Window::GetMousePosition()
} }
#endif #endif
#ifdef WIN32 #ifdef WIN32
Vec2i OpenArena::Window::GetMousePosition() OpenArena::Vec2i OpenArena::Window::GetMousePosition()
{ {
POINT pos; POINT pos;
GetCursorPos(&pos); GetCursorPos(&pos);