- Timestamp:
- 07/16/08 10:46:32 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderQueue.cpp
r2826 r2839 58 58 59 59 60 bool RenderQueue::FitsInBucket(SceneEntity *ent, size_t idx) const 61 { 60 bool RenderQueue::FitsInBucket(Shape *ent, size_t idx) const 61 { 62 #ifdef TODO 62 63 Material *mat = ent->GetMaterial(); 63 64 #else 65 Material *mat = NULL; 66 #endif 64 67 // test if entity belongs to this bucket 65 68 // note: rather slows down the application for some reason!! … … 89 92 RenderQueueBucket *bucket; 90 93 ++ mSize; 91 94 #ifdef TODO 92 95 if (entity->mRenderQueueBucket) 93 96 { … … 135 138 entity->mRenderQueueBucket = bucket; 136 139 } 137 140 #endif 138 141 bucket->mEntities.push_back(entity); 139 142 } … … 185 188 { 186 189 SceneEntity *ent = *sit; 187 190 #ifdef TODO 188 191 Material *mat = ent->GetMaterial(); 189 192 int tsize = mat->GetTexture() ? mat->GetTexture()->GetByteSize() : 0; 190 193 float dist = SqrMagnitude(ent->GetBoundingBox().Center() - mCamera->GetPosition()); 191 194 Debug << "e: " << ent << " a: " << mat->IsAlphaTestEnabled() << " s: " << tsize << " d: " << dist << " " << endl; 195 #endif 192 196 } 193 197 }
Note: See TracChangeset
for help on using the changeset viewer.