AlphaSwittleTeam

ProgressBar

Jul 17th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. @Override
  2.     public void render()
  3.     {
  4.     GL11.glPushMatrix();
  5.     {
  6.         GL11.glColor4f(backgroundColor.getRed(), backgroundColor.getGreen(), backgroundColor.getBlue(), backgroundColor.getAlpha());
  7.         GL11.glBegin(GL11.GL_QUADS);
  8.         {
  9.         GL11.glVertex2f(x, y);
  10.         GL11.glVertex2f(x + width, y);
  11.         GL11.glVertex2f(x + width, y + height);
  12.         GL11.glVertex2f(x, y + height);
  13.         }
  14.         GL11.glEnd();
  15.     }
  16.     GL11.glPopMatrix();
  17.     // ------------------------------------------------------------------------------------------------------------------------------//
  18.     GL11.glPushMatrix();
  19.     {
  20.         GL11.glColor4f(foregroundColor.getRed(), foregroundColor.getGreen(), foregroundColor.getBlue(), foregroundColor.getAlpha());
  21.         GL11.glBegin(GL11.GL_QUADS);
  22.         {
  23.         GL11.glVertex2f(x, y - 10);
  24.         GL11.glVertex2f(x + value, y - 10);
  25.         GL11.glVertex2f(x + value, (y + height) - 10);
  26.         GL11.glVertex2f(x, (y + height) - 10);
  27.         }
  28.         GL11.glEnd();
  29.     }
  30.     GL11.glPopMatrix();
  31.     }
Advertisement
Add Comment
Please, Sign In to add comment