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

Method GetColorForOption

trinity/Tr2DebugRenderer.cpp:915–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

913
914
915bool Tr2DebugRenderer::GetColorForOption( Color& color, const Tr2DebugRendererOption& option ) const
916{
917 auto iter = m_optionColors.find( option );
918 if( iter != m_optionColors.end() )
919 {
920 color = iter->second;
921 return true;
922 }
923 return false;
924}
925
926void Tr2DebugRenderer::SetColorForOption( const Tr2DebugRendererOption& option, const Color& color )
927{

Callers 2

PyGetColorForOptionMethod · 0.80
RenderDebugInfoMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected