View Full Version : how to open a image file in opengl

11-14-2003, 10:24 PM
Is there any way that I can display a image file on a polygon. ie i should be able to open a image from stored location and map it on to the polygon

11-14-2003, 11:08 PM
No there isn't, OpenGL is a pure rendering engine and does not handle any other stuff for you.

But there are lots of ways to do it, this forum contains a few hundred hits on this subject, www.wotsit.org (http://www.wotsit.org) has lots of descriptions on different file formats, the NeHe tutorials contain a simple image loader and there are more complex libraries available on the internet to handle it, take a look at www.sourceforge.net (http://www.sourceforge.net) and www.freshmeat.net (http://www.freshmeat.net) just to name a few examples.


11-15-2003, 09:12 PM
thank you... i will look into these websites for help..

thanks once again