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

Method SetCurrentColor

trinity/TriLineSet.cpp:396–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void TriLineSet::SetCurrentColor( uint32_t val )
397{
398 size_t numPoints = m_vertices.size();
399 val = SwizzleColor( val );
400 for( size_t i = 0; i < numPoints; i++ )
401 {
402 m_vertices[i].m_color = val;
403 }
404}
405
406void TriLineSet::Render( Tr2RenderContext& renderContext )
407{

Callers 4

ResetPrimitiveColorsMethod · 0.45
ResetPrimitiveColorsMethod · 0.45
SelectAxisMethod · 0.45
ResetPrimitiveColorsMethod · 0.45

Calls 2

sizeMethod · 0.80
SwizzleColorFunction · 0.70

Tested by

no test coverage detected