View Full Version : jpegs
Andrew Waller
10-01-2005, 04:04 AM
Hi my problem is I want to import jpgs using opengl.
if this is possible can somebody tell me how I can do this.
mikael_aronsson
10-01-2005, 04:36 AM
No, opengl does not have any support to import images, but there are lots of libraries that can help you with this, but it does depend a little on if you are using Windows, Unix, Mac or want to be platform independant, www.freshmeat.net (http://www.freshmeat.net) and www.sourceforge.net (http://www.sourceforge.net) is a useful source to locate Open Source libraries.
Mikael
Andrew Waller
10-01-2005, 04:49 AM
ok so say that I have a library that allows me to do this how can I use opengl to map the jpgs to say a cube in opengl to create an enviornment.
J.R. Hass
10-01-2005, 09:03 AM
Originally posted by Andrew Waller:
ok so say that I have a library that allows me to do this how can I use opengl to map the jpgs to say a cube in opengl to create an enviornment.Check out chapter 9 (http://fly.cc.fer.hr/~unreal/theredbook/chapter09.html) of the red book.
Also, nehe.gamedev.net (http://nehe.gamedev.net) has some pretty good tuts on texture mapping.
happy coding :)
-JR
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.