90 Degree Rotation Blt
I'm trying to do a 90 degree rotation blt, but I can't seem to get it working.
RECT scRect, destRect;
scRect.left = (124*frame); //frame is a class member
scRect.right = scRect.left + 124;
scRect.top = (248*move); //move is a class member
scRect.bottom = scRect.top + 248;
destRect.left = 300;
destRect.right = destRect.left + 124;
destRect.top = 150;
destRect.bottom = destRect.top + 248;
ddBltFX.dwSize = sizeof( DDBLTFX );
ddBltFX.dwDDFX = DDBLTFX_ROTATE90;
ddBltFX.dwRotationAngle = 90;
if(FAILED(hr = pDD7temp->Blt( &destRect, pDD7Surface, &scRect, DDBLT_KEYSRC | DDBLT_WAIT | DDBLT_DDFX, &ddBltFX)) )
Does anyone have a simple walkthrough for rotation blts in DirectX7? Or maybe just an answer to my question?
You should be able to adapt this by locking the surface and manipulating the pixels.