| 18 | } |
| 19 | |
| 20 | Tr2TextureAtlas* Tr2TextureAtlasMan::FindAtlas( Tr2RenderContextEnum::PixelFormat fmt ) |
| 21 | { |
| 22 | CcpAutoMutex lock( m_atlasesMutex ); |
| 23 | |
| 24 | for( auto it = m_atlases.begin(); it != m_atlases.end(); ++it ) |
| 25 | { |
| 26 | if( ( *it )->GetFormat() == fmt ) |
| 27 | { |
| 28 | return *it; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | return NULL; |
| 33 | } |
| 34 | |
| 35 | // TODO: Error handling |
| 36 | void Tr2TextureAtlasMan::AddAtlas( Tr2RenderContextEnum::PixelFormat fmt, unsigned int width, unsigned int height ) |
no test coverage detected