jpegs

Hi my problem is I want to import jpgs using opengl.

if this is possible can somebody tell me how I can do this.

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 and www.sourceforge.net is a useful source to locate Open Source libraries.

Mikael

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.

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 of the red book.

Also, nehe.gamedev.net has some pretty good tuts on texture mapping.

happy coding :slight_smile:
-JR