• Advertisement

Archived

This topic is now archived and is closed to further replies.

2D DirectDraw BMP-Rotation

This topic is 6576 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you rotate a Bitmap thats been loaded into an offscreen buffer by using an arbitrary angle. I NEED THIS ANSWER FOR A 2D FLYING GAME THAT''S DUE NEXT THURSDAY ON MY BOSS(father)''S DESK FOR HIM TO BUNDLE WITH NEW PC''S. THANKS!!!!!!!

Share this post


Link to post
Share on other sites
Advertisement
Your still trying to figure out how to rotate a bitmap, and you have to have the game done by thursday?

must be some game.

How did you want to rotate the bitmap? DirectX? OpenGL? Glide? or software rotation?

Share this post


Link to post
Share on other sites
Ok, if you''re 3d card can handle 2d hardware rotation, you could use that with the Blt function in Direct Draw.
But if you don''t have that you''ll have to use software. Take a look at this article which explains what you have to do:

http://www.gamedev.net/reference/programming/graphics/article811.asp

Share this post


Link to post
Share on other sites
You should render each frame of your plane''s rotation, like it is done in the DX SDK sample programs. It is the easiest and fastest way...

Bye

Share this post


Link to post
Share on other sites
Hey I''m Using DX (So use Hardware). It''s for the Missile graphics. They don''t need to change after I start rendering them. I just need to turn the surface it''s loaded in to the angle the ship shoots at. I got it to shoot pixels right but you don''t need to rotate a pixel. The missile will fly in a straight line.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Hey I''m Using DX (So use Hardware). It''s for the Missile graphics. They don''t need to change after I start rendering them. I just need to turn the surface it''s loaded in to the angle the ship shoots at. I got it to shoot pixels right but you don''t need to rotate a pixel. The missile will fly in a straight line.

Share this post


Link to post
Share on other sites
Related Question: How do you use lpDDSBack->Blt();

I figured out it can be rotated from there, but i can even get it to render from here.

thanks

Share this post


Link to post
Share on other sites

  • Advertisement