| 236 | |
| 237 | #ifdef DAEDALUS_DEBUG_DISPLAYLIST |
| 238 | void CTextureCache::Snapshot(const MutexLock & lock, std::vector< STextureInfoSnapshot > & snapshot) const |
| 239 | { |
| 240 | DAEDALUS_ASSERT(lock.HasLock(mDebugMutex), "No debug lock"); |
| 241 | |
| 242 | snapshot.erase( snapshot.begin(), snapshot.end() ); |
| 243 | |
| 244 | for( TextureVec::const_iterator it = mTextures.begin(); it != mTextures.end(); ++it ) |
| 245 | { |
| 246 | STextureInfoSnapshot info( (*it)->GetTextureInfo(), (*it)->GetTexture() ); |
| 247 | snapshot.push_back( info ); |
| 248 | } |
| 249 | } |
| 250 | #endif // DAEDALUS_DEBUG_DISPLAYLIST |
no test coverage detected