Jump to content
  • Advertisement

Archived

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

soreno

convert bmp/tga to .h

This topic is 6155 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 had this cool program that could convert a bmp/tga file to a .h file that is easy to use as a texture in my program. But I lost it.. does anyone know what i''m talking about? where can I download it?

Share this post


Link to post
Share on other sites
Advertisement
.h file? Isn''t that a header file? How do you use it as an image format?

Besides, I highly suggest you learn how to make your own classes to parse info from Bitmaps and Targa files. It is really easy to do once you learn how to parse a binary file. Image files are mainly set up like this:

Header info <- describes the image
Data <- actual pixel data

Of course this varies between file formats, so you will need to do a search for "bitmap file format" or "targa file format" and learn how the header is setup.

Share this post


Link to post
Share on other sites
it''s not because i''m lazy.. (or maybe it is.)
but it is an easy way to include the image in my exe file (a screensaver), writing it myself seems stupid when someone has already done the job.

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!