Photoshop files

Hi, Anybody here has a function or procedure that loads a photoshop file and then uses it like a texture.

Convert it to the TGA, BMP, PNG or TIFF file …

Or save directly your picture in photoshop with one of this formats …

They already exist a lot of OpenGL texture loaders for this warious formats, so why reinvent the wheel for nothing ???

@+
Cyclone

Would you tell me where I could find some examples? I have an example from nehe website that loads a bmp file… but I really want to know how to load the other file formats.

Thanx.

You can find somes examples for .png, .jpg and .bmp here (it’s Delphi sources, but this is easy to convert this in C/C++).

 [http://delphigl.cfxweb.net/](http://delphigl.cfxweb.net/)  

Or you can find various file formats infos at

[http://www.dcs.ed.ac.uk/home/mxr/gfx/2d-hi.html](http://www.dcs.ed.ac.uk/home/mxr/gfx/2d-hi.html)  

or at

 [http://www.wotsit.org/](http://www.wotsit.org/)  

@+
Cyclone

Thank you Cyclone, I have been loooking for that as well