convert bmp/tga to .h

Started by
2 comments, last by soreno 22 years, 4 months ago
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?
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.
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.
found it:
http://opengl.si.pl/download/utils/GFX2TEX.RAR

This topic is closed to new replies.

Advertisement