diff options
author | vimene <vincent.menegaux@gmail.com> | 2024-12-31 03:40:14 +0100 |
---|---|---|
committer | vimene <vincent.menegaux@gmail.com> | 2024-12-31 03:40:14 +0100 |
commit | cc6fb8c33637566a7b116d46440e6063f016deea (patch) | |
tree | 5cc83f84525507994add57df7dd974e6611d675a /src/o3d/vertex.h | |
parent | 6b765a85cf81bf4b7162e4c9280dd4054581c611 (diff) | |
download | engine-cc6fb8c33637566a7b116d46440e6063f016deea.tar.gz |
various improvements
- added quaternions and rewrote all rotations to use them
- added transforms to put all object transforms in a single place
- added Wavefront .obj file parser
- removed frame buffer's abstract class
- improved vectors, matrices, triangles, vertices and vertices data by putting all code in header file
- added vector's operations
- changed from NULL to nullptr
- miscellaneous improvements
Diffstat (limited to 'src/o3d/vertex.h')
-rw-r--r-- | src/o3d/vertex.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/o3d/vertex.h b/src/o3d/vertex.h index 1247fc8..438f8b3 100644 --- a/src/o3d/vertex.h +++ b/src/o3d/vertex.h @@ -6,13 +6,12 @@ namespace engine::o3d { -class Vertex { - public: - engine::math::Vector4 vertex; - engine::math::Vector3 normal; - VertexData data; +using engine::math::Vector3, engine::math::Vector4; - Vertex(engine::math::Vector4 vertex, engine::math::Vector3 normal, VertexData data); +struct Vertex { + Vector4 vertex; + Vector3 normal; + VertexData data; }; } |