summaryrefslogtreecommitdiffstats
path: root/src/render/geometry/qgeometryrenderer.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-10-12 13:22:17 +0200
committerPaul Lemire <paul.lemire@kdab.com>2015-10-14 18:52:42 +0000
commit6cf4712bda7d3453ddf728f5903374abd2f4efc9 (patch)
treed30f8d8421d30b7175d687eea91df8e697a54a88 /src/render/geometry/qgeometryrenderer.h
parentc8b386a57d53eb2c24f1e32f483569c56db6f362 (diff)
Resurrect bounding volumes
For BackToFront sorting to work we need to calculate a depth value based on the entity's bounding spheres. This is currently missing as there is no AABB from which the RenderEntity's localBoundingVolume could be calculated. Bring it back. RenderEntity contains two world bounding volumes from now on: just having one that includes the children is not ideal because in some cases we want to know the entitys own bounding volume not including the children. This is the case when building render commands for example. Change-Id: I20f5bccdc3f868bcbd5faa3164f0e9995a3171ec Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/render/geometry/qgeometryrenderer.h')
-rw-r--r--src/render/geometry/qgeometryrenderer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/geometry/qgeometryrenderer.h b/src/render/geometry/qgeometryrenderer.h
index 31e42e2db..bb4d8a85b 100644
--- a/src/render/geometry/qgeometryrenderer.h
+++ b/src/render/geometry/qgeometryrenderer.h
@@ -82,7 +82,7 @@ public:
};
Q_ENUM(PrimitiveType)
- // how to figure out index count, bounding boxes, and all the fancy stuff that QMeshData provides for us?
+ // how to figure out index count and all the fancy stuff that QMeshData provides for us?
// also how to figure out which attribute(s?) hold the indices?
int instanceCount() const;