diff options
Diffstat (limited to 'gfx/models/obj.h')
-rw-r--r-- | gfx/models/obj.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/models/obj.h b/gfx/models/obj.h index 2921e34..71733fe 100644 --- a/gfx/models/obj.h +++ b/gfx/models/obj.h @@ -12,6 +12,7 @@ #include <vector> class Mesh; +class Vertex; class ObjParser : yyFlexLexer { public: @@ -38,6 +39,8 @@ public: std::vector<Object> objects; glm::length_t axis {0}; + using NamedMeshData = std::pair<std::string, std::pair<std::vector<Vertex>, std::vector<unsigned int>>>; + [[nodiscard]] std::vector<NamedMeshData> createMeshData() const; using NamedMesh = std::pair<std::string, std::shared_ptr<const Mesh>>; [[nodiscard]] std::vector<NamedMesh> createMeshes() const; }; |