本文整理汇总了C++中LPDIRECTDRAWSURFACE4::DeleteAttachedSurface方法的典型用法代码示例。如果您正苦于以下问题:C++ LPDIRECTDRAWSURFACE4::DeleteAttachedSurface方法的具体用法?C++ LPDIRECTDRAWSURFACE4::DeleteAttachedSurface怎么用?C++ LPDIRECTDRAWSURFACE4::DeleteAttachedSurface使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LPDIRECTDRAWSURFACE4
的用法示例。
在下文中一共展示了LPDIRECTDRAWSURFACE4::DeleteAttachedSurface方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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;
}
}