cBackWall::~cBackWall(void) { DestroyPlane(); SAFE_RELEASE(m_pTexture); SAFE_RELEASE(m_pIB); SAFE_RELEASE(m_pVB); }
void DestroyTriangle( triangle **theTriangle ) { triangle *thisTriangle = *theTriangle; if( ! thisTriangle ) return; DestroyPlane(&thisTriangle->PNor); free( thisTriangle ); *theTriangle = NULL; }
void DestroyCamera ( Camera **theCamera ) { int i; Camera *thisCamera = *theCamera; if( ! thisCamera ) return; if (thisCamera->name) free(thisCamera->name); for (i=0; i<MAX_CLIP_PLANES; ++i) { DestroyPlane(&(thisCamera->fPlanes[i])); } DestroyTrfm3D(&(thisCamera->viewTrfm)); DestroyTrfm3D(&(thisCamera->projTrfm)); free( thisCamera ); *theCamera = NULL; }