summaryrefslogtreecommitdiff
path: root/gfx/models
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-20 14:06:29 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-20 14:06:29 +0000
commitb77024de4351bcddee5c4781aa9fc031131f293b (patch)
treec51d7c8add4c450a0b6e980da88830fa53215171 /gfx/models
parentdos2unix shader sources (diff)
downloadilt-b77024de4351bcddee5c4781aa9fc031131f293b.tar.bz2
ilt-b77024de4351bcddee5c4781aa9fc031131f293b.tar.xz
ilt-b77024de4351bcddee5c4781aa9fc031131f293b.zip
Pass linters
Diffstat (limited to 'gfx/models')
-rw-r--r--gfx/models/mesh.cpp6
-rw-r--r--gfx/models/mesh.h7
-rw-r--r--gfx/models/obj.impl.cpp6
3 files changed, 8 insertions, 11 deletions
diff --git a/gfx/models/mesh.cpp b/gfx/models/mesh.cpp
index c829f4e..3487083 100644
--- a/gfx/models/mesh.cpp
+++ b/gfx/models/mesh.cpp
@@ -1,11 +1,5 @@
#include "mesh.h"
-#include "obj.h"
#include "vertex.hpp"
-#include <algorithm>
-#include <glm/glm.hpp>
-#include <iterator>
-#include <resource.h>
-#include <vector>
Mesh::Mesh(std::span<Vertex> vertices, std::span<unsigned int> indices, GLenum m) :
m_vertexArrayObject {}, m_vertexArrayBuffers {}, m_numIndices {indices.size()}, mode {m}
diff --git a/gfx/models/mesh.h b/gfx/models/mesh.h
index ea3a26b..1e53407 100644
--- a/gfx/models/mesh.h
+++ b/gfx/models/mesh.h
@@ -4,14 +4,11 @@
#include <GL/glew.h>
#include <array>
#include <cstddef>
-#include <filesystem>
-#include <gfx/models/vertex.hpp>
+#include <memory>
#include <span>
#include <special_members.hpp>
-#include <utility>
-#include <vector>
-class ObjParser;
+class Vertex;
enum MeshBufferPositions { POSITION_VB, TEXCOORD_VB, NORMAL_VB, INDEX_VB };
diff --git a/gfx/models/obj.impl.cpp b/gfx/models/obj.impl.cpp
index e410058..0c1303a 100644
--- a/gfx/models/obj.impl.cpp
+++ b/gfx/models/obj.impl.cpp
@@ -1,6 +1,12 @@
#include "obj.h"
+#include <algorithm>
#include <gfx/models/mesh.h>
#include <gfx/models/vertex.hpp>
+#include <glm/glm.hpp>
+#include <iterator>
+#include <memory>
+#include <utility>
+#include <vector>
std::vector<ObjParser::NamedMesh>
ObjParser::createMeshes() const