From 90fb63152628927d5d13b0101f4f2dcec025d2f7 Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Sat, 17 Jul 2004 05:23:17 +0000 Subject: Port a few rasterizer changes from tuhopuu2: Up the max batch size. Clean up some of the code - move code in headers to source files etc. --- source/gameengine/Rasterizer/RAS_BucketManager.h | 26 ++---------------------- 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'source/gameengine/Rasterizer/RAS_BucketManager.h') diff --git a/source/gameengine/Rasterizer/RAS_BucketManager.h b/source/gameengine/Rasterizer/RAS_BucketManager.h index 9d7c5a4b05a..59144f1e175 100644 --- a/source/gameengine/Rasterizer/RAS_BucketManager.h +++ b/source/gameengine/Rasterizer/RAS_BucketManager.h @@ -47,31 +47,9 @@ class RAS_BucketManager typedef std::vector BucketList; BucketList m_MaterialBuckets; BucketList m_AlphaBuckets; - - /** - * struct alphamesh holds a mesh, (m_ms) it's depth, (m_z) and the bucket it came from (m_bucket.) - */ - struct alphamesh - { - public: - MT_Scalar m_z; - RAS_MaterialBucket::T_MeshSlotList::iterator m_ms; - RAS_MaterialBucket *m_bucket; - alphamesh(MT_Scalar z, RAS_MaterialBucket::T_MeshSlotList::iterator &ms, RAS_MaterialBucket *bucket) : - m_z(z), - m_ms(ms), - m_bucket(bucket) - {} - }; - - struct backtofront - { - bool operator()(const alphamesh &a, const alphamesh &b) - { - return a.m_z < b.m_z; - } - }; + struct alphamesh; + struct backtofront; public: RAS_BucketManager(); -- cgit v1.2.3