JPG in Opengl

hi guys…
i need load a JPG image to use as texture, how i do it???
i need a sample code… thanks…

Go to wotsit.org for your file reading forumulas.

Originally posted by Joe the Programmer:
Go to wotsit.org for your file reading forumulas.
i tryed in this site, but i din’t get find how load a jpg image file in Opengl.

google for jpg loaders/libraries. there are some good ones out there, like intel’s. jpg is a bit tricky to parse yourself…

also google for the devil image library… handles loading/saving of jpegs and a lot more.

FreeImage (http://freeimage.sourceforge.net) comes with some good help.

yesterday I did it if bmp image file, but if jpg image file i din’t, to transfor in my algorith BMP to JPG, what i do?

if somebody want’s my algorith, send me a email, that i’ll send to you look…
leandrosanches_@terra.com.br

i have MSN, leandrosanches_@hotmail.com
Thanks…

Loading jpg images is not in the scope of those forums. As other said, try the devil library for example.