import org.l } /** * Render the current frame */ private static void render() { // clear the screen GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_STENCIL_BUFFER_BIT); // center square according to screen size GL11.glPushMatrix(); GL11.glTranslatef(Display.getDisplayMode().getWidth() / 2, Display.getDisplayMode().getHeight() / 2, 0.0f); // rotate square according to angle // GL11.glRotatef(angle, 0, 0, 1.0f); // render the square GL11.glBegin(GL11.GL_QUADS); GL11.glVertex2i(-200, -200); GL11.glVertex2i(200, -200); GL11.glVertex2i(200, 200); GL11.glVertex2i(-200, 200); GL11.glEnd(); GL11.glPopMatrix(); } }