aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/vertex.h
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-11-26 08:43:14 +0100
committervimene <vincent.menegaux@gmail.com>2023-11-26 08:43:14 +0100
commit5a1d67d1797a3db874e44500e13237d676843185 (patch)
tree17d0f1c2db6cc32fe40fdde4a081b96e8ad0ae13 /src/o3d/vertex.h
parentf63febed2a769d0c55192e192a20b8e39f162932 (diff)
downloadengine-5a1d67d1797a3db874e44500e13237d676843185.tar.gz
added namespaces, made every function in engine.cpp static and added warnings' flags
Diffstat (limited to 'src/o3d/vertex.h')
-rw-r--r--src/o3d/vertex.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/o3d/vertex.h b/src/o3d/vertex.h
index 27ca56a..66d073d 100644
--- a/src/o3d/vertex.h
+++ b/src/o3d/vertex.h
@@ -4,22 +4,26 @@
#include "math/math_vector.h"
#include "o3d/vertex_data.h"
+namespace engine::o3d {
+
class Vertex3 {
public:
- MathVector3 point;
+ engine::math::MathVector3 point;
VertexData data;
- Vertex3(MathVector3 point, VertexData data);
+ Vertex3(engine::math::MathVector3 point, VertexData data);
};
class Vertex4 {
public:
- MathVector4 point;
+ engine::math::MathVector4 point;
VertexData data;
- Vertex4(MathVector4 point, VertexData data);
+ Vertex4(engine::math::MathVector4 point, VertexData data);
Vertex4(Vertex3 vertex);
Vertex3 div_by_w() const;
};
+}
+
#endif // O3D_VERTEX_H