summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2012-10-31 17:05:53 -0600
committerXiaohong Bao <bao@lindenlab.com>2012-10-31 17:05:53 -0600
commit5ae116f89b8459963ccb6ae9125d94ffaa79025e (patch)
treed9404c72f950d505cad189764bbf3ca07e62c50d /indra/newview/llvocache.h
parente35a220bf7dd47132174c81181d5f59fb0d54c5d (diff)
for SH-3471: create a simplified version of octree for object cache entries.
Diffstat (limited to 'indra/newview/llvocache.h')
-rw-r--r--indra/newview/llvocache.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h
index 2228e3e43b..675c12a3eb 100644
--- a/indra/newview/llvocache.h
+++ b/indra/newview/llvocache.h
@@ -98,6 +98,19 @@ protected:
std::vector<LLVOCacheEntry*> mChildrenList; //children entries in a linked set.
};
+class LLVOCachePartition : public LLViewerOctreePartition
+{
+public:
+ LLVOCachePartition(LLViewerRegion* regionp);
+
+ void addEntry(LLViewerOctreeEntry* entry);
+ void removeEntry(LLViewerOctreeEntry* entry);
+ /*virtual*/ S32 cull(LLCamera &camera);
+
+private:
+ U32 mVisitedTime;
+};
+
//
//Note: LLVOCache is not thread-safe
//