LPDIRECTDRAWSURFACE7 m_pDDSOffScreen;
DDSURFACEDESC2 ddsd;
///////////////////////////////////////////////////////////////////////////
ZeroMemory( &ddsd, sizeof(m_ddsd) );
ddsd.dwSize = sizeof(m_ddsd);
ddsd.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT;
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
ddsd.dwWidth = 640;
ddsd.dwHeight = 480;
ddsd.dwSize = sizeof(m_ddsd);
ddsd.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT;
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
ddsd.dwWidth = 640;
ddsd.dwHeight = 480;
if (FAILED(m_lpdd->CreateSurface(&m_ddsd, &m_pDDSOffScreen, NULL)))
{
MessageBox( NULL, "CreateSurface 실패했습니다.", "에러", MB_OK );
{
MessageBox( NULL, "CreateSurface 실패했습니다.", "에러", MB_OK );
return;
}
}
//////////////////////////////////////////////////////////////////////////
댓글 없음:
댓글 쓰기