Changed Moved all vector classes into namespace OpenArena
~g2k
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define __vector_h__
|
||||
|
||||
#include <cmath>
|
||||
|
||||
namespace OpenArena{
|
||||
class Vec3d
|
||||
{
|
||||
public:
|
||||
@@ -79,5 +79,5 @@ public:
|
||||
bool operator==(const Vec2i&) const;
|
||||
bool operator!=(const Vec2i&) const;
|
||||
};
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "../include/vector.h"
|
||||
|
||||
namespace OpenArena{
|
||||
Vec3d::Vec3d()
|
||||
{
|
||||
x=0.0f;
|
||||
@@ -247,3 +248,4 @@ bool Vec2i::operator!=(const Vec2i& rtOp) const
|
||||
{
|
||||
return !(x == rtOp.x && y == rtOp.y);
|
||||
}
|
||||
};
|
||||
@@ -411,7 +411,7 @@ Vec2i OpenArena::Window::GetMousePosition()
|
||||
}
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
Vec2i OpenArena::Window::GetMousePosition()
|
||||
OpenArena::Vec2i OpenArena::Window::GetMousePosition()
|
||||
{
|
||||
POINT pos;
|
||||
GetCursorPos(&pos);
|
||||
|
||||
Reference in New Issue
Block a user