title: how to load an image in opengl
body: <p>I need to upload an image into my background...
  Does anyone know how to do this?
  I know I have to do the following steps:</p>
  
  <pre><code>1) Load image data into system memory
  2) Generate a texture name with glGenTextures
  3) Bind the texture name with gBindTexture
  4) Set wrapping and filtering mode with glTexParameter
  5) call glTexImage2D with the right parameters depending on the image nature to load image data into video memory
  </code></pre>
  
  <p>but I don't know how to put them in opengl</p>