Recommended Posts

here's my function for converting a .bmp to a texture function. submitted not only for your approval, but your improvement.
known issues:
i eliminated glaux, but now it's GDI dependent. ideally it would have no OS dependencies.
support for non powers of 2. ideally it would resize if the driver did not support non powers of two.

Share this post

Link to post

Share on other sites

I implemented a simple BMP loader (only grayscale or RGB and no compression) by my self only using fopen(), fread() and fclose(). If you are intrested I can send it to you but it depends on a little bit of declarations within my environment so you cant use it out of the box.

But why not using some other file format? I am always using PNG now. To load it I use the excellent libpng which is cross platform and virtually everywhere available.