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

Method SetLowResGeometryRes

trinity/Tr2Mesh.cpp:80–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void Tr2Mesh::SetLowResGeometryRes( TriGeometryRes* res )
81{
82 // Remove existing callback setup if any, set new geometry resource and attach callback
83 if( m_lowResGeometryResource )
84 {
85 m_lowResGeometryResource->RemoveNotifyTarget( this );
86 }
87
88 m_lowResGeometryResource = res;
89
90 if( m_lowResGeometryResource )
91 {
92 m_lowResGeometryResource->AddNotifyTarget( this );
93 if( HasReversedAreas() )
94 {
95 m_lowResGeometryResource->RequestReversedIndexBuffers();
96 }
97 }
98}
99
100// --------------------------------------------------------------------------------------
101// Description:

Callers

nothing calls this directly

Calls 3

RemoveNotifyTargetMethod · 0.80
AddNotifyTargetMethod · 0.80

Tested by

no test coverage detected