Jump to content
  • Advertisement

Archived

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

Yanroy

New graphic file format

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

Do you have to use bitmap files with DirectDraw? Can you make your own file loader that then can be blitted to a surface? Plz tell me how to do this... I know how to make the file format, just not how to blt it once it is loaded. --------------------

You are not a real programmer until you end all your sentences with semicolons;
www.trak.to/rdp

Yanroy@usa.com

Share this post


Link to post
Share on other sites
Advertisement
I can''t get into specifics right now (I''m extremely busy at work), but you would load the file, and put it pixel by pixel onto the generic surface (according to whatever formats/rules your file contains). At that point, all surfaces are stored in DIB format, so you would blit like normal from the surface to the backbuffer, and then do the flip (you would only need to do the PIXEL by PIXEL thing when the sprite''s surface was created). Note that you WOULDN''T create this type of file as a resource -- you would need to load it manually during run-time.

Sorry I can''t go into it in more depth (if you email me, i should be able to describe it better tomorrow)

-Chris

---<<>>---
Chris Rouillard
Software Engineer
crouilla@hotmail.com

Share this post


Link to post
Share on other sites
I use the intel JPEG library to load my JPEG based bitmaps to a DirectDraw Surface.

U would need:
1) To download the Intel JPEG (IJL) library from intel.com. (its free)
2) create your own routine to read the JPEG file via the IJL library straight into a DDraw surface.

If u want, I can give u the source code I made.

(SikCiv@Hotmail.com)

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!