void ChunkManager::RenderDebug() { m_ChunkMapMutexLock.lock(); typedef map<ChunkCoordKeys, Chunk*>::iterator it_type; for (it_type iterator = m_chunksMap.begin(); iterator != m_chunksMap.end(); iterator++) { Chunk* pChunk = iterator->second; if (pChunk != NULL) { pChunk->RenderDebug(); } } m_ChunkMapMutexLock.unlock(); }
void ChunkManager::RenderDebug() { m_pRenderer->SetRenderMode(RM_SOLID); m_ChunkMapMutexLock.lock(); typedef map<ChunkCoordKeys, Chunk*>::iterator it_type; for (it_type iterator = m_chunksMap.begin(); iterator != m_chunksMap.end(); iterator++) { Chunk* pChunk = iterator->second; if (pChunk != NULL && pChunk->IsCreated()) { pChunk->RenderDebug(); } } m_ChunkMapMutexLock.unlock(); }