aboutsummaryrefslogtreecommitdiff
path: root/src/obj_parser.h
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2024-12-31 03:40:14 +0100
committervimene <vincent.menegaux@gmail.com>2024-12-31 03:40:14 +0100
commitcc6fb8c33637566a7b116d46440e6063f016deea (patch)
tree5cc83f84525507994add57df7dd974e6611d675a /src/obj_parser.h
parent6b765a85cf81bf4b7162e4c9280dd4054581c611 (diff)
downloadengine-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/obj_parser.h')
-rw-r--r--src/obj_parser.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/obj_parser.h b/src/obj_parser.h
new file mode 100644
index 0000000..2a6d791
--- /dev/null
+++ b/src/obj_parser.h
@@ -0,0 +1,12 @@
+#ifndef OBJ_PARSER_H
+#define OBJ_PARSER_H
+
+#include "o3d/mesh.h"
+
+namespace engine {
+
+o3d::Mesh parse_object(const std::string& obj_path);
+
+}
+
+#endif // OBJ_PARSER_H