| 58 | } |
| 59 | |
| 60 | void 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 | |
| 80 | void Tr2Mesh::SetLowResGeometryRes( TriGeometryRes* res ) |
| 81 | { |
nothing calls this directly
no test coverage detected