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 ???
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.
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++).
Or you can find various file formats infos at
Thank you Cyclone, I have been loooking for that as well