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

Method ResetPrimitiveColors

trinity/Tr2TranslationTool.cpp:116–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void Tr2TranslationTool::ResetPrimitiveColors()
117{
118 for( PrimitiveIterator it = m_primitives.begin(); it != m_primitives.end(); ++it )
119 {
120 if( ( *it )->m_name == "x" )
121 {
122 ( *it )->SetCurrentColor( (Color&)v4Red );
123 }
124 else if( ( *it )->m_name == "y" )
125 {
126 ( *it )->SetCurrentColor( (Color&)v4Green );
127 }
128 else if( ( *it )->m_name == "z" )
129 {
130 ( *it )->SetCurrentColor( (Color&)v4Blue );
131 }
132 else if( ( *it )->m_name == "w" )
133 {
134 ( *it )->SetCurrentColor( (Color&)v4Cyan );
135 }
136 }
137}
138
139void Tr2TranslationTool::GenLineSets()
140{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
SetCurrentColorMethod · 0.45

Tested by

no test coverage detected