title: OpenGL Image Drawing
body: <p>I already have my game loading up at the correct dimensions, displaying a background and playing some background music, this is supposed to be a log-in screen, I've never messed with graphics before, although I know how to write most of the server/client communication so that won't be a problem.</p>
  
  <p>How do I draw multiple images, and how do I put them where I want them?</p>
  
  <p>More importantly, does OpenGL support the "Transparent" feature of PNG Images?  Because that's how I developed my start screen by having a semi-transparent login box, semi-transparent buttons, etc.</p>
  
  <p>I'm aware of how to load the images, although drawing them is a different story..</p>
  
  <pre><code>public void drawStartScreen() {
          Color.white.bind();
          c.getAssets().backgroundImage.bind(); // or GL11.glBind(c.getAssets().backgroundImage.getTextureID());
          GL11.glBegin(GL11.GL_QUADS);
          GL11.glTexCoord2f(0, 0);
          GL11.glVertex2f(0, 0);
          GL11.glTexCoord2f(1, 0);
          GL11.glVertex2f(c.getAssets().backgroundImage.getTextureWidth(), 0);
          GL11.glTexCoord2f(1, 1);
          GL11.glVertex2f(c.getAssets().backgroundImage.getTextureWidth(),
                  c.getAssets().backgroundImage.getTextureHeight());
          GL11.glTexCoord2f(0, 1);
          GL11.glVertex2f(0, c.getAssets().backgroundImage.getTextureHeight());
          GL11.glEnd();
  
          if(playMusic == true) {
              c.getAssets().backgroundMusic.playAsMusic(1.0f, 1.0f, true);
              playMusic=false;
          }
      }
  </code></pre>
  
  <p>I can't figure out how to move the image around using the above code, so I can't write my own method to "Fill in" the above code with "Parameters".</p>
  
  <p>I'm trying to get my secondary image to draw to the middle of the client, I know people may look down on me for this although this is a slight example of what I'm talking about and where some of my experience in programming comes from what creating server-based emulators for Runescape for many years, so below I will leave an image showing the "LoginBox" ontop of the Background.. the buttons are transparent with a black edge, which allows you to see the loginbox beneath it, besides for where the black border was drawn.  </p>
  
  <p>This is what I meant by "Transparent" support:</p>
  
  <p><a href="https://i.stack.imgur.com/zbv5G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zbv5G.png" alt="img"></a></p>