summaryrefslogtreecommitdiff
path: root/gfx/models/mesh.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-07-20 12:19:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-08-10 18:11:59 +0100
commit4102debac6fc9bcc58091ead007dbce47b42c712 (patch)
treee26c36635cdf394b5338ce7dfcd5e77394409d9f /gfx/models/mesh.cpp
parentInitial commit of basic shadow depth map creation (diff)
downloadilt-4102debac6fc9bcc58091ead007dbce47b42c712.tar.bz2
ilt-4102debac6fc9bcc58091ead007dbce47b42c712.tar.xz
ilt-4102debac6fc9bcc58091ead007dbce47b42c712.zip
Calculate and store the extents of a mesh
Diffstat (limited to 'gfx/models/mesh.cpp')
-rw-r--r--gfx/models/mesh.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gfx/models/mesh.cpp b/gfx/models/mesh.cpp
index e7474ca..1b6ecda 100644
--- a/gfx/models/mesh.cpp
+++ b/gfx/models/mesh.cpp
@@ -1,6 +1,9 @@
#include "mesh.h"
-MeshBase::MeshBase(GLsizei m_numIndices, GLenum mode) : m_numIndices {m_numIndices}, mode {mode} { }
+MeshBase::MeshBase(GLsizei m_numIndices, GLenum mode, std::pair<RelativePosition3D, RelativePosition3D> minmax) :
+ m_numIndices {m_numIndices}, mode {mode}, min {minmax.first}, max {minmax.second}
+{
+}
void
MeshBase::Draw() const