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

Method SetReversed

trinity/Tr2MeshArea.cpp:138–147  ·  view source on GitHub ↗

------------------------------------------------------------- Description: Assigns a flag indicating that the area requires rendering triangles in reversed order and reversed culling order. Arguments: reversed - true If the area requests reversed order of rendering false If the area needs a normal order of rendering -------------------------------------------------------------

Source from the content-addressed store, hash-verified

136// false If the area needs a normal order of rendering
137// -------------------------------------------------------------
138void Tr2MeshArea::SetReversed( bool reversed )
139{
140 m_reversed = reversed;
141 if( m_reversed )
142 {
143 for_each( begin( m_ownerMeshes ), end( m_ownerMeshes ), []( auto mesh ) {
144 mesh->ReverseIndexBuffers();
145 } );
146 }
147}
148
149// -------------------------------------------------------------
150// Description:

Callers

nothing calls this directly

Calls 3

beginFunction · 0.70
endFunction · 0.70
ReverseIndexBuffersMethod · 0.45

Tested by

no test coverage detected