From 66da4f83c1b5bb6f3ceda880820e01c2f8e23e43 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 14 Apr 2023 17:45:31 +0100 Subject: Remove the old .obj load, assets and supporting stuff --- gfx/models/obj.h | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 gfx/models/obj.h (limited to 'gfx/models/obj.h') diff --git a/gfx/models/obj.h b/gfx/models/obj.h deleted file mode 100644 index e28f7de..0000000 --- a/gfx/models/obj.h +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#ifndef yyFlexLexer -# define yyFlexLexer objbaseFlexLexer -# include -#endif -#include -#include -#include -#include -#include -#include - -class Mesh; -class Vertex; - -class ObjParser : yyFlexLexer { -public: - explicit ObjParser(const std::filesystem::path & fileName); - explicit ObjParser(std::unique_ptr in); - - int yylex() override; - - std::vector vertices; - std::vector texCoords; - std::vector normals; - using FaceElement = glm::vec<3, unsigned int>; - using Face = std::vector; - using Faces = std::vector; - using Object = std::pair; - std::vector objects; - glm::length_t axis {0}; - - using NamedMeshesData = std::map, std::vector>>; - [[nodiscard]] NamedMeshesData createMeshData() const; - using NamedMeshes = std::map>; - [[nodiscard]] NamedMeshes createMeshes() const; -}; -- cgit v1.2.3