how to open a image file in opengl

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

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, 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 and just to name a few examples.


thank you… i will look into these websites for help…

thanks once again