diff options
author | Brad Kittenbrink <brad@lindenlab.com> | 2008-02-27 18:58:14 +0000 |
---|---|---|
committer | Brad Kittenbrink <brad@lindenlab.com> | 2008-02-27 18:58:14 +0000 |
commit | 6d52efe452aa8469e0343da1c7d108f3f52ab651 (patch) | |
tree | a87be48e9840d7fc1f7ee514d7c7f994e71fdb3c /indra/newview/llviewerregion.h | |
parent | 6027ad2630b8650cabcf00628ee9b0d25bedd67f (diff) |
Merge of windlight into release (QAR-286). This includes all changes in
windlight14 which have passed QA (up through r79932).
svn merge -r 80831:80833 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge_windlight14_r80620
Diffstat (limited to 'indra/newview/llviewerregion.h')
-rw-r--r-- | indra/newview/llviewerregion.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/indra/newview/llviewerregion.h b/indra/newview/llviewerregion.h index e42c0015df..3d5334cd18 100644 --- a/indra/newview/llviewerregion.h +++ b/indra/newview/llviewerregion.h @@ -64,10 +64,27 @@ class LLViewerParcelOverlay; class LLSurface; class LLVOCache; class LLVOCacheEntry; +class LLSpatialPartition; class LLViewerRegion { public: + //MUST MATCH THE ORDER OF DECLARATION IN CONSTRUCTOR + typedef enum + { + PARTITION_HUD=0, + PARTITION_TERRAIN, + PARTITION_WATER, + PARTITION_TREE, + PARTITION_PARTICLE, + PARTITION_CLOUD, + PARTITION_GRASS, + PARTITION_VOLUME, + PARTITION_BRIDGE, + PARTITION_NONE, + NUM_PARTITIONS + } eObjectPartitions; + LLViewerRegion(const U64 &handle, const LLHost &host, const U32 surface_grid_width, @@ -84,7 +101,8 @@ public: void sendReliableMessage(); // Send the current message to this region's simulator void setOriginGlobal(const LLVector3d &origin); - void setAgentOffset(const LLVector3d &offset); + //void setAgentOffset(const LLVector3d &offset); + void updateRenderMatrix(); void setAllowDamage(BOOL b) { setFlags(b, REGION_FLAGS_ALLOW_DAMAGE); } void setAllowLandmark(BOOL b) { setFlags(b, REGION_FLAGS_ALLOW_LANDMARK); } @@ -245,6 +263,7 @@ public: // used by LCD to get details for debug screen U32 getNetDetailsForLCD(); + LLSpatialPartition* getSpatialPartition(U32 type); public: struct CompareDistance { @@ -270,6 +289,8 @@ public: LLStat mPacketsStat; LLStat mPacketsLostStat; + LLMatrix4 mRenderMatrix; + // These arrays are maintained in parallel. Ideally they'd be combined into a // single array of an aggrigate data type but for compatibility with the old // messaging system in which the previous message only sends and parses the @@ -348,6 +369,10 @@ protected: CapabilityMap mCapabilities; LLEventPoll* mEventPoll; + +private: + //spatial partitions for objects in this region + std::vector<LLSpatialPartition*> mObjectPartition; }; inline BOOL LLViewerRegion::getAllowDamage() const |