summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-11-13 11:41:29 -0700
committerXiaohong Bao <bao@lindenlab.com>2013-11-13 11:41:29 -0700
commit754a671c93f55c3e1cde6cd2ee0771156f7abaf5 (patch)
tree357fb2d93798f01870654756623eec1dd42949f5 /indra/newview/llvocache.h
parent0eba8e8f23ecbdbfcb9a409dd91a1e2a6c4d3f00 (diff)
parent58b153cf878370643bd61914538a80e6512c7e5c (diff)
Automated merge with http://bitbucket.org/lindenlab/viewer-interesting
Diffstat (limited to 'indra/newview/llvocache.h')
-rwxr-xr-xindra/newview/llvocache.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h
index 9d851288b4..6e10ab86ee 100755
--- a/indra/newview/llvocache.h
+++ b/indra/newview/llvocache.h
@@ -85,14 +85,14 @@ public:
bool hasState(U32 state) {return mState & state;}
U32 getState() const {return mState;}
- bool isAnyVisible(const LLVector4a& camera_origin, F32 squared_dist_threshold);
+ bool isAnyVisible(const LLVector4a& camera_origin, const LLVector4a& local_camera_origin, F32 dist_threshold);
U32 getLocalID() const { return mLocalID; }
U32 getCRC() const { return mCRC; }
S32 getHitCount() const { return mHitCount; }
S32 getCRCChangeCount() const { return mCRCChangeCount; }
- void calcSceneContribution(const LLVector4a& camera_origin, bool needs_update, U32 last_update);
+ void calcSceneContribution(const LLVector4a& camera_origin, bool needs_update, U32 last_update, F32 dist_threshold);
void setSceneContribution(F32 scene_contrib) {mSceneContrib = scene_contrib;}
F32 getSceneContribution() const { return mSceneContrib;}
@@ -117,6 +117,7 @@ public:
void setBoundingInfo(const LLVector3& pos, const LLVector3& scale); //called from processing object update message
void updateParentBoundingInfo();
+ void saveBoundingSphere();
void setTouched(BOOL touched = TRUE) {mTouched = touched;}
BOOL isTouched() const {return mTouched;}
@@ -153,6 +154,9 @@ protected:
BOOL mTouched; //if set, this entry is valid, otherwise it is invalid.
+ LLVector4a mBSphereCenter; //bounding sphere center
+ F32 mBSphereRadius; //bounding sphere radius
+
public:
static U32 sMinFrameRange;
static F32 sNearRadiusSquared;