View Full Version : jpegs
10-01-2005, 05: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.
10-01-2005, 05: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.
10-01-2005, 05: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.
10-01-2005, 10: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 :)
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.