Rotated bitmap?

This is a discussion on Rotated bitmap? within the Game Programming forums, part of the General Programming Boards category; Does anyone know how to dispaly a bitmap so it's rotated a specific number of degrees using GDI? This is ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    11

    Rotated bitmap?

    Does anyone know how to dispaly a bitmap so it's rotated a specific number of degrees using GDI? This is for HIVE.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Look at

    SetWorldTransform

    an example from MSDN
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    11

    Thank you

    That function should work great.

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    11
    That functions doesn't work for older vesions of Windows. Does anyone know of one that does?

  5. #5
    Call me AirBronto
    Join Date
    Sep 2004
    Location
    Indianapolis, Indiana
    Posts
    195
    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.
    Last edited by loopshot; 08-15-2005 at 11:48 PM.

  6. #6
    Registered User
    Join Date
    Aug 2005
    Posts
    11

    Thanks

    Loopshot, thanks for telling me. Does anyone know of an alternative?

  7. #7
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,584
    Create vertices for your bitmap quad.
    Transform them manually.

    Code:
    D3DXMATRIX World;
    D3DXMATRIX Trans;
    D3DXMATRIX Rotation;
    
    D3DXMatrixTranslation(&Trans,dx,dy,dz);
    D3DXRotationMatrixYawPitchRoll(&Rotation,yaw,pitch,roll);
    
    World=Rotation*Trans;
    Then use D3DXMatrixTransformCoord() to multiply your vertices by the World matrix.

  8. #8
    Registered User
    Join Date
    Aug 2005
    Posts
    11

    Gdi

    I'm using GDI, not direct 3d.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 08:43 AM
  2. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM
  3. Loading a Bitmap resource for OpenGL Texture[x]
    By the dead tree in forum Game Programming
    Replies: 4
    Last Post: 08-26-2004, 01:12 PM
  4. bitmap not going onto screen
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 02-22-2003, 09:07 AM
  5. texture is all white in opengl!
    By Crossbow in forum Game Programming
    Replies: 7
    Last Post: 03-31-2002, 10:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21