List of usage examples for org.lwjgl.opengl GL11 glViewport
public static void glViewport(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int w, @NativeType("GLsizei") int h)
From source file:zsawyer.mods.stereoscopic3d.renderers.StereoscopicRenderer.java
License:Open Source License
public void setupView(int x, int y, int width, int height, boolean eager) { GL11.glViewport(x, y, width, height); if (eager) {/*from www .j a v a 2s. c om*/ GL11.glMatrixMode(GL11.GL_MODELVIEW); GL11.glLoadIdentity(); GL11.glMatrixMode(GL11.GL_PROJECTION); GL11.glLoadIdentity(); GLU.gluOrtho2D(0, width, 0, height); GL11.glMatrixMode(GL11.GL_MODELVIEW); GL11.glLoadIdentity(); } }