title: Texture Mapping C++ OpenGL
body: <p>I have read around on this, including Nehe and here for solutions, but I cant find a specific answer.</p>
  
  <p>I am trying to load a a photo, called stars.jpg.  I want to make this my background of the scene, by mapping it using uv coordinates, doing it by</p>
  
  <pre><code>glBegin(GL_QUADS);
  glTexCoord2f(0,0);
  glVertex2f(0,0);
  </code></pre>
  
  <p>However I am just very confused about how to load the actual textures in, all the calls for</p>
  
  <pre><code>glActiveTexture();
  glEnable(GL_TEXTURE_2d);
  glBindTexture(GL_TEXTURE);
  </code></pre>
  
  <p>All they do is confuse me,  what do all these mean/do, and in what order am I suppose to put these in, in order to get the stars.jpg to be my background?</p>