Archived

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

Bitmaps, HBITMAP, and DirectDraw Surfaces

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

I''m coding (of all things) an RPG! It''s in the early stages (I taught myself the DirectX basics yesterday). I need to know how to load bitmaps (16 bit) from files (instead of compiling them as resources all the time). I know the DirectX tools included in the SDK (ddutil.cpp) let you load a bitmap from a file, but the example had it loading from a resource. I don''t know how to get it to load from an actually *.bmp file. How do I do this? Also, which would be more efficient? Loading all the textures into DirectDraw Surfaces and letting DDraw deal with everything or loading all the bitmaps into system memory and then loading only the bitmaps that will be on the current map into video memory? Thanks

Share this post


Link to post
Share on other sites