Jump to content
  • Advertisement
Sign in to follow this  
zny

i do not know is this can post here. A ddraw Problem

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

hi guys, i want use ddraw load a bmp, i know i can use loadimage(), but for some special reason, i must write my own function to load bmp files, how can i do it?

Share this post


Link to post
Share on other sites
Advertisement
To load .bmps you need to know the structure of the file. A quick googling gave me this:
Windows BMP Bitmap File Format.

Once you know the structure of the file, you just read the raw data of a .bmp and extract the information using the .bmp file template.

Share this post


Link to post
Share on other sites
As for your subject - this is the correct place to be asking DirectX/DirectDraw questions. You might want to choose a better subject though - "How to load bitmaps with DirectDraw".

May I ask why you want to use DirectDraw? - its not been updated since the last century and is well and truly deprecated [lol]

Consequently you'll find good/reliable information and examples hard to find. Even asking on public forums is ceasing to be such a good idea - its been many years since I've done any DD coding, and I'd imagine the same is true for many other people...

hth
Jack

Share this post


Link to post
Share on other sites
You're right that DD is deprecated but IMO it's one of the simplest (yet powerful) APIs you can use.

It's easy to use, fast and efficient and supports everything you need in terms of 2D. I think DD is one of the best things that ever came out of Microsoft.

In general I think DirectX is one of their best products, even though it's free. This is one place where they don't slack.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!