diff options
author | leyla_linden <none@none> | 2011-02-23 16:38:45 -0800 |
---|---|---|
committer | leyla_linden <none@none> | 2011-02-23 16:38:45 -0800 |
commit | b0e64098ba7dabec0b14d0129efa87b5e5a29df2 (patch) | |
tree | 1efebf171b17a4eb5a47cfba224a268dfe54e337 /indra/newview/llspatialpartition.h | |
parent | 9f537ad93fe7992bb6d652473a4ac3680320cab5 (diff) | |
parent | 34428b305a437256f5db170db91506e2d94440e9 (diff) |
Merge
Diffstat (limited to 'indra/newview/llspatialpartition.h')
-rw-r--r-- | indra/newview/llspatialpartition.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llspatialpartition.h b/indra/newview/llspatialpartition.h index 664d957e49..0d9cad914a 100644 --- a/indra/newview/llspatialpartition.h +++ b/indra/newview/llspatialpartition.h @@ -148,6 +148,17 @@ public: }; + struct CompareMatrixTexturePtr + { + bool operator()(const LLPointer<LLDrawInfo>& lhs, const LLPointer<LLDrawInfo>& rhs) + { + return lhs.get() != rhs.get() + && (lhs.isNull() || (rhs.notNull() && (lhs->mModelMatrix > rhs->mModelMatrix || + (lhs->mModelMatrix == rhs->mModelMatrix && lhs->mTexture.get() > rhs->mTexture.get())))); + } + + }; + struct CompareBump { bool operator()(const LLPointer<LLDrawInfo>& lhs, const LLPointer<LLDrawInfo>& rhs) @@ -532,6 +543,7 @@ public: sg_list_t::iterator beginAlphaGroups(); sg_list_t::iterator endAlphaGroups(); + bool hasOcclusionGroups() { return mOcclusionGroupsSize > 0; } sg_list_t::iterator beginOcclusionGroups(); sg_list_t::iterator endOcclusionGroups(); |