title: Displaying an exp bar properly
body: <p>I have recently started messing around with LWJGL and I was making a little game to test some stuff in. I wanted to try to make an EXP bar and thought that it would be fairly easy. I got almost done with it until I ran into a large issue. That issue is properly displaying the exp bar filling up on the screen.</p>
  
  <p>The game window is 1280 pixels in width and 720 pixels in height. The EXP bar is on the very bottom of the window 10 pixels high and stretches across the entire width of the window. As your level increases, the amount of exp needed to level up also increases. I need some help displaying the amount of exp that you currently have. When you first start you need 100 exp to level up. For example, say I have 50 exp. I need to show the exp bar 50% filled. I am asking for a formula to do this.</p>
  
  <p>I tried looking around the internet for an answer but none of them worked, even though a few seemed like they would work just fine.</p>
  
  <p>Current code to render the filled exp:</p>
  
  <pre><code>glColor3f(1f, 0f, 1f);
  glBegin(GL_QUADS);
      glVertex2i(x, y); // Upper Left
      glVertex2i(x, y); //Upper Right
      glVertex2i(x, y + height); //Bottom Right
      glVertex2i(x, y + height); //Bottom Left
  glEnd();
  </code></pre>