Changed Moved all vector classes into namespace OpenArena
~g2k
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
};
|
||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user