diff options
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_IPolygonMaterial.h')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_IPolygonMaterial.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h index 01c3e80c055..7d10f23068b 100644 --- a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h +++ b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h @@ -43,6 +43,9 @@ class RAS_IRasterizer; +/** + * Material properties. + */ class RAS_IPolyMaterial { //todo: remove these variables from this interface/protocol class @@ -104,6 +107,7 @@ public: virtual void Activate(RAS_IRasterizer* rasty, TCachingInfo& cachingInfo) const {} bool Equals(const RAS_IPolyMaterial& lhs) const; + bool Less(const RAS_IPolyMaterial& rhs) const; int GetLightLayer(); bool IsTransparant(); bool UsesTriangles(); @@ -118,5 +122,10 @@ inline bool operator ==( const RAS_IPolyMaterial & rhs,const RAS_IPolyMaterial return ( rhs.Equals(lhs)); } +inline bool operator < ( const RAS_IPolyMaterial & lhs, const RAS_IPolyMaterial & rhs) +{ + return lhs.Less(rhs); +} + #endif //__RAS_IPOLYGONMATERIAL |