diff options
author | vimene <vincent.menegaux@gmail.com> | 2023-11-26 08:43:14 +0100 |
---|---|---|
committer | vimene <vincent.menegaux@gmail.com> | 2023-11-26 08:43:14 +0100 |
commit | 5a1d67d1797a3db874e44500e13237d676843185 (patch) | |
tree | 17d0f1c2db6cc32fe40fdde4a081b96e8ad0ae13 /src/o3d/vertex.cpp | |
parent | f63febed2a769d0c55192e192a20b8e39f162932 (diff) | |
download | engine-5a1d67d1797a3db874e44500e13237d676843185.tar.gz |
added namespaces, made every function in engine.cpp static and added warnings' flags
Diffstat (limited to 'src/o3d/vertex.cpp')
-rw-r--r-- | src/o3d/vertex.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/o3d/vertex.cpp b/src/o3d/vertex.cpp index c3bddef..4da6aa4 100644 --- a/src/o3d/vertex.cpp +++ b/src/o3d/vertex.cpp @@ -2,10 +2,12 @@ #include "math/math_vector.h" #include "o3d/vertex_data.h" -Vertex3::Vertex3(MathVector3 point, VertexData data) : point{point}, data{data} { +using namespace engine::o3d; + +Vertex3::Vertex3(engine::math::MathVector3 point, VertexData data) : point{point}, data{data} { } -Vertex4::Vertex4(MathVector4 point, VertexData data) : point{point}, data{data} { +Vertex4::Vertex4(engine::math::MathVector4 point, VertexData data) : point{point}, data{data} { } Vertex4::Vertex4(Vertex3 vertex) : point{vertex.point}, data{vertex.data} { |