View Full Version : JPG in Opengl
04-04-2006, 04:53 PM
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, 05:39 PM
Go to wotsit.org for your file reading forumulas.
04-04-2006, 08: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.
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.
04-05-2006, 09: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..
i have MSN, firstname.lastname@example.org
Loading jpg images is not in the scope of those forums. As other said, try the devil library for example.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.