void Shutdown(void) { if (Lightmap) Lightmap->Release(); Lightmap = NULL; if (LightmapSurface) LightmapSurface->Release(); LightmapSurface = NULL; DirectX = NULL; };
int PisteDraw_Lopeta() { if (!PD_unload) { int i; for (i=0; i<MAX_FONTTEJA; i++) { if (PD_fontit[i] != NULL ) delete PD_fontit[i]; PD_fontit[i] = NULL; } for (i=2;i<MAX_BUFFEREITA;i++) // 0 ja 1 on varattu taustapuskureille PisteDraw_Buffer_Tuhoa(i); if (PD_lpddpal) { PD_lpddpal->Release(); } PisteDraw_Buffer_Tuhoa(PD_TAUSTABUFFER); PisteDraw_Buffer_Tuhoa(PD_TAUSTABUFFER2); if (PD_lpddsprimary) { PD_lpddsprimary->Release(); } if (PD_lpdd) { PD_lpdd->Release(); } PD_unload = true; } return 0; }
int DD_Shutdown () { if(lpdd) { if (lpddsprimary) { lpddsprimary->Release(); lpddsprimary = NULL; } lpdd->Release(); lpdd = NULL; return 1; } return 0; } // end DD_Shutdown
void Destroy_Surface(LPDIRECTDRAWSURFACE4 Surface) const { Surface->Release(); };
// Direct3D 제거 void ReleaseD3D() { //###################################################################################### //작 성 자 : 오 영 석 DestroyDevice( lpDeviceDesc ); //###################################################################################### //###################################################################################### //작 성 자 : 오 영 석 ReleaseNewRenderTarget(); //###################################################################################### // Viewport 제거 if ( lpD3DViewport ) { // Direct3D Device 에서 Viewport 제거 lpD3DDevice->DeleteViewport( lpD3DViewport ); lpD3DViewport->Release(); lpD3DViewport = NULL; } // Direct3D Device 제거 if ( lpD3DDevice ) { lpD3DDevice->Release(); lpD3DDevice = NULL; } // Z-Buffer Surface 제거 if ( lpDDSZBuffer ) { // Back Surface 에서 Z-Buffer Surface 제거 if ( lpDDSBack ) lpDDSBack->DeleteAttachedSurface( 0L, lpDDSZBuffer ); lpDDSZBuffer->Release(); lpDDSZBuffer = NULL; } //###################################################################################### //작 성 자 : 오 영 석 if ( lpDDSBack ) { lpDDSBack->Release(); lpDDSBack = NULL; } //###################################################################################### // Direct3D Interface 제거 if ( lpD3D ) { lpD3D->Release(); lpD3D = NULL; } // Primary Surface 제거 if ( lpDDSPrimary ) { lpDDSPrimary->Release(); lpDDSPrimary = NULL; } // DirectDraw2 Interface 제거 if ( lpDD ) { // 비디오 모드 복귀 lpDD->RestoreDisplayMode(); lpDD->Release(); lpDD = NULL; } }