List of usage examples for org.lwjgl.opengl GL11 glScissor
public static void glScissor(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height)
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glScissor(int a, int b, int c, int d) { GL11.glScissor(a, b, c, d); }
From source file:uk.co.hexeption.darkforge.gui.gui.elements.Frame.java
License:Open Source License
@Override public void renderChildren(int mouseX, int mouseY) { if (this.isMaximized()) { GL11.glEnable(GL11.GL_SCISSOR_TEST); GL11.glScissor(getX() * 2, Display.getHeight() - ((getY() + getDimension().height) * 2), getDimension().width * 2, (getDimension().height - getFrameBoxHeight()) * 2); for (Component component : getComponents()) { component.render(mouseX, mouseY); }// w w w . j a v a 2s . c o m GL11.glDisable(GL11.GL_SCISSOR_TEST); } }
From source file:uk.co.hexeption.darkforge.utils.render.GLUtils.java
License:Open Source License
public static void glScissor(float x, float y, float x1, float y1) { int scaleFactor = getScaleFactor(); GL11.glScissor((int) (x * scaleFactor), (int) (Minecraft.getMinecraft().displayHeight - (y1 * scaleFactor)), (int) ((x1 - x) * scaleFactor), (int) ((y1 - y) * scaleFactor)); }