Jump to content
  • Advertisement

Archived

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

sdrichardson

Bitmap Rendering

This topic is 5287 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

Has anyone got any examples of how to render bitmaps to a background in DX9? i can only find DX8 examples which won''t work with my librarys Scotty.

Share this post


Link to post
Share on other sites
Advertisement
so you want to render an image as a background to all the other 3D? you can do that by making a quad that fills the screen and texturing it with the image, then drawing everything else. or, you can use the ID3DXSprite interface to simplify things; just draw a sprite with the image and then draw everything else.

Share this post


Link to post
Share on other sites
Assuming you don''t want the image to move or anything, just a purely static background, then it''s easy.

Load the image to a surface.
Get the Backbuffer surface.
Use IDirect3DDevice9::UpdateSurface to blit to the backbuffer.
Render your 3D.
Present.

That should be it

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!