DDBLTFX ddbltfx;
/* vertically mirror */
ZeroMemory(&ddbltfx, sizeof(ddbltfx));
ddbltfx.dwSize = sizeof(ddbltfx);
ddbltfx.dwDDFX = DDBLTFX_MIRRORUPDOWN;
hr = m_pDrawSurface->Blt(&rcDest, pSurface, &rcSrc
, DDBLT_WAIT | DDBLT_DDFX, &ddbltfx);
/* horizontal mirror */
ZeroMemory(&ddbltfx, sizeof(ddbltfx));
ddbltfx.dwSize = sizeof(ddbltfx);
ddbltfx.dwDDFX = DDBLTFX_MIRRORLEFTRIGHT;
hr = m_pDrawSurface->Blt(&rcDest, pSurface, &rcSrc
, DDBLT_WAIT | DDBLT_DDFX, &ddbltfx);
DirectDraw画面水平或垂直翻转
最新推荐文章于 2017-01-03 00:29:27 发布