Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void render()
- {
- GL11.glPushMatrix();
- {
- GL11.glColor4f(backgroundColor.getRed(), backgroundColor.getGreen(), backgroundColor.getBlue(), backgroundColor.getAlpha());
- GL11.glBegin(GL11.GL_QUADS);
- {
- GL11.glVertex2f(x, y);
- GL11.glVertex2f(x + width, y);
- GL11.glVertex2f(x + width, y + height);
- GL11.glVertex2f(x, y + height);
- }
- GL11.glEnd();
- }
- GL11.glPopMatrix();
- // ------------------------------------------------------------------------------------------------------------------------------//
- GL11.glPushMatrix();
- {
- GL11.glColor4f(foregroundColor.getRed(), foregroundColor.getGreen(), foregroundColor.getBlue(), foregroundColor.getAlpha());
- GL11.glBegin(GL11.GL_QUADS);
- {
- GL11.glVertex2f(x, y - 10);
- GL11.glVertex2f(x + value, y - 10);
- GL11.glVertex2f(x + value, (y + height) - 10);
- GL11.glVertex2f(x, (y + height) - 10);
- }
- GL11.glEnd();
- }
- GL11.glPopMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment