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

Method ResetPrimitiveColors

trinity/Tr2RotationTool.cpp:184–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void Tr2RotationTool::ResetPrimitiveColors()
185{
186 for( PrimitiveIterator it = m_primitives.begin(); it != m_primitives.end(); ++it )
187 {
188 if( ( *it )->m_name == "x" )
189 {
190 ( *it )->SetCurrentColor( (Color&)v4Red );
191 }
192 else if( ( *it )->m_name == "y" )
193 {
194 ( *it )->SetCurrentColor( (Color&)v4Green );
195 }
196 else if( ( *it )->m_name == "z" )
197 {
198 ( *it )->SetCurrentColor( (Color&)v4Blue );
199 }
200 else if( ( *it )->m_name == "w" )
201 {
202 ( *it )->SetCurrentColor( (Color&)v4Cyan );
203 }
204 else if( ( *it )->m_name == "ww" )
205 {
206 ( *it )->SetCurrentColor( (Color&)v4LightGray );
207 }
208 }
209}
210
211void Tr2RotationTool::GetUnTransformedBaseVectors( Vector3& x, Vector3& y, Vector3& z )
212{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
SetCurrentColorMethod · 0.45

Tested by

no test coverage detected