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

Method ResetPrimitiveColors

trinity/Tr2ScalingTool.cpp:284–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void Tr2ScalingTool::ResetPrimitiveColors()
285{
286 for( PrimitiveIterator it = m_primitives.begin(); it != m_primitives.end(); ++it )
287 {
288 if( ( *it )->m_name == "x" )
289 {
290 ( *it )->SetCurrentColor( (Color&)v4Red );
291 }
292 else if( ( *it )->m_name == "y" )
293 {
294 ( *it )->SetCurrentColor( (Color&)v4Green );
295 }
296 else if( ( *it )->m_name == "z" )
297 {
298 ( *it )->SetCurrentColor( (Color&)v4Blue );
299 }
300 else if( ( *it )->m_name == "w" )
301 {
302 ( *it )->SetCurrentColor( (Color&)v4Cyan );
303 }
304 }
305}
306
307void Tr2ScalingTool::GenLineSets()
308{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
SetCurrentColorMethod · 0.45

Tested by

no test coverage detected