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

Method SetGeometryRes

trinity/Tr2Mesh.cpp:60–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void Tr2Mesh::SetGeometryRes( TriGeometryRes* res )
61{
62 // Remove existing callback setup if any, set new geometry resource and attach callback
63 if( m_geometryResource )
64 {
65 m_geometryResource->RemoveNotifyTarget( this );
66 }
67
68 m_geometryResource = res;
69
70 if( m_geometryResource )
71 {
72 m_geometryResource->AddNotifyTarget( this );
73 if( HasReversedAreas() )
74 {
75 m_geometryResource->RequestReversedIndexBuffers();
76 }
77 }
78}
79
80void Tr2Mesh::SetLowResGeometryRes( TriGeometryRes* res )
81{

Callers

nothing calls this directly

Calls 3

RemoveNotifyTargetMethod · 0.80
AddNotifyTargetMethod · 0.80

Tested by

no test coverage detected