   How do I make a 2D image gallery in OpenGL?
  HiI am trying to learn about openGL, and have a specific application in mind. I was hoping some of you guys would be willing to give some pointers, as to how I can create it.I want to make a 2D-image gallery. I should look something like this: http://www.mythtv.org/wiki/File:GalleryPics.jpg, with the images displayed row by row.I know that this could probably be achieved easier using other libraries, but I would like to try to do it using openGL.The problem is that I don't know where to begin. How do I load in the images (jpg), and how do I display them using OpenGL? Should I treat them as textures?I hope some of you can help me get started. Thanks in advance!munkebo40   
  Well the first thing you'll want to do is try to display one image. If you're starting with .jpgs, then you'll most likely want to find an image loading library, unless you feel like spending a month reading the .jpg file specification and writing your own decompression algorithm :)OpenGL has no knowledge of different image formats, and only understands images that are laid out in memory as an array of RGB pixels. An image loading library can provide that array for you, and then you use glTexImage2D to generate a texture from that array. Then you draw a square with that texture overlaid on it. Repeat as many times as necessary to show your gallery.If you're only using jpgs you can use libjpeg, or if you want to load multiple file types you can get a broader library. I'm currently using SFML which I can say is easy to setup and get running for loading images of multiple popular filetypes.   