Does anyone know how to dispaly a bitmap so it's rotated a specific number of degrees using GDI? This is for HIVE.
Printable View
Does anyone know how to dispaly a bitmap so it's rotated a specific number of degrees using GDI? This is for HIVE.
Look at
SetWorldTransform
an example from MSDN
That function should work great.
That functions doesn't work for older vesions of Windows. Does anyone know of one that does?
Ok here is the deal for SetWorld Transform, it is a very flexable function that will work for many different things but it is in no way efficient of fast, NOT TO BE USED FOR GAMES!!!!
I have not been at the boards in a while, like all summer, but now i am in college so i am back. :p
Loopshot, thanks for telling me. Does anyone know of an alternative?
Create vertices for your bitmap quad.
Transform them manually.
Then use D3DXMatrixTransformCoord() to multiply your vertices by the World matrix.Code:
D3DXMATRIX World;
D3DXMATRIX Trans;
D3DXMATRIX Rotation;
D3DXMatrixTranslation(&Trans,dx,dy,dz);
D3DXRotationMatrixYawPitchRoll(&Rotation,yaw,pitch,roll);
World=Rotation*Trans;
I'm using GDI, not direct 3d.