PDA

View Full Version : JPG in Opengl



leandro sanches
04-04-2006, 03:53 PM
hi guys...
i need load a JPG image to use as texture, how i do it????
i need a sample code.... thanks..

Joe the Programmer
04-04-2006, 04:39 PM
Go to wotsit.org for your file reading forumulas.

leandro sanches
04-04-2006, 07:00 PM
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.

04-04-2006, 07:06 PM
google for jpg loaders/libraries. there are some good ones out there, like intel's. jpg is a bit tricky to parse yourself...

04-04-2006, 07:10 PM
also google for the devil image library... handles loading/saving of jpegs and a lot more.

BlaX
04-05-2006, 01:16 AM
FreeImage (http://freeimage.sourceforge.net) comes with some good help.

leandro sanches
04-05-2006, 08:09 AM
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....

jide
04-05-2006, 08:26 AM
Loading jpg images is not in the scope of those forums. As other said, try the devil library for example.