Пример #1
0
cBackWall::~cBackWall(void)
{
	DestroyPlane();
	SAFE_RELEASE(m_pTexture);
	SAFE_RELEASE(m_pIB);
	SAFE_RELEASE(m_pVB);
}
Пример #2
0
void DestroyTriangle( triangle **theTriangle ) {

    triangle *thisTriangle = *theTriangle;
    if( ! thisTriangle ) return;

    DestroyPlane(&thisTriangle->PNor);
    free( thisTriangle );

    *theTriangle = NULL;
}
Пример #3
0
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;
}