MCPcopy Create free account
hub / github.com/carbonengine/trinity / RemoveAtlas

Method RemoveAtlas

trinity/Tr2TextureAtlasMan.cpp:55–68  ·  view source on GitHub ↗

TODO: Error handling

Source from the content-addressed store, hash-verified

53
54// TODO: Error handling
55void Tr2TextureAtlasMan::RemoveAtlas( Tr2RenderContextEnum::PixelFormat fmt )
56{
57 CcpAutoMutex lock( m_atlasesMutex );
58
59 ssize_t ix = 0;
60 for( auto it = m_atlases.begin(); it != m_atlases.end(); ++it, ++ix )
61 {
62 if( ( *it )->GetFormat() == fmt )
63 {
64 m_atlases.Remove( ix );
65 break;
66 }
67 }
68}
69
70void Tr2TextureAtlasMan::RemoveAtlasWrap( unsigned fmt )
71{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
GetFormatMethod · 0.45

Tested by

no test coverage detected