本文整理汇总了C++中LPDIRECTDRAWSURFACE4::Release方法的典型用法代码示例。如果您正苦于以下问题:C++ LPDIRECTDRAWSURFACE4::Release方法的具体用法?C++ LPDIRECTDRAWSURFACE4::Release怎么用?C++ LPDIRECTDRAWSURFACE4::Release使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LPDIRECTDRAWSURFACE4
的用法示例。
在下文中一共展示了LPDIRECTDRAWSURFACE4::Release方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Shutdown
void Shutdown(void)
{
if (Lightmap) Lightmap->Release();
Lightmap = NULL;
if (LightmapSurface) LightmapSurface->Release();
LightmapSurface = NULL;
DirectX = NULL;
};
示例2:
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;
}
示例3: DD_Shutdown
int DD_Shutdown ()
{
if(lpdd)
{
if (lpddsprimary)
{
lpddsprimary->Release();
lpddsprimary = NULL;
}
lpdd->Release();
lpdd = NULL;
return 1;
}
return 0;
} // end DD_Shutdown
示例4: Destroy_Surface
void Destroy_Surface(LPDIRECTDRAWSURFACE4 Surface) const { Surface->Release(); };
示例5: ReleaseD3D
// 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;
}
}