Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-05-21 13:21:15 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-05-21 13:21:15 +0400
commite957b12f0eb5ae56f6db1c64d123eacc0840cc61 (patch)
treeb8ed8f092619edb303cf34aba11b0999ad317d40 /source/gameengine/SceneGraph/SG_BBox.h
parent1217928e662bd74980dc17c8d32797b0bc6f7002 (diff)
Frustum sphere culling.
Do a sphere<->camera sphere and a sphere<->frustum before the box<->frustum test.
Diffstat (limited to 'source/gameengine/SceneGraph/SG_BBox.h')
-rw-r--r--source/gameengine/SceneGraph/SG_BBox.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/gameengine/SceneGraph/SG_BBox.h b/source/gameengine/SceneGraph/SG_BBox.h
index 6e3d208ea54..5a4d396faf1 100644
--- a/source/gameengine/SceneGraph/SG_BBox.h
+++ b/source/gameengine/SceneGraph/SG_BBox.h
@@ -63,13 +63,13 @@ public:
/**
* Enlarges the bounding box to contain the specified point.
*/
- SG_BBox& operator +=(MT_Point3 &point);
+ SG_BBox& operator +=(const MT_Point3 &point);
/**
* Enlarges the bounding box to contain the specified bound box.
*/
- SG_BBox& operator +=(SG_BBox &bbox);
+ SG_BBox& operator +=(const SG_BBox &bbox);
- SG_BBox operator + (SG_BBox &bbox2) const;
+ SG_BBox operator + (const SG_BBox &bbox2) const;
#if 0
/**
* Translates the bounding box.
@@ -124,6 +124,10 @@ public:
* @param world a world transform to be applied.
*/
void getaa(MT_Point3 *box, const MT_Transform &world) const;
+
+ void split(SG_BBox &left, SG_BBox &right) const;
+
+ friend class SG_Tree;
};