List of usage examples for org.lwjgl.opengl GL11 glRasterPos2i
public static native void glRasterPos2i(@NativeType("GLint") int x, @NativeType("GLint") int y);
From source file:org.jogamp.glg2d.impl.gl2.GL2ColorHelper.java
License:Apache License
@Override public void copyArea(int x, int y, int width, int height, int dx, int dy) { // glRasterPos* is transformed, but CopyPixels is not int x2 = x + dx; int y2 = y + dy + height; GL11.glRasterPos2i(x2, y2); int x1 = x;/*from ww w . java 2s . c o m*/ int y1 = g2d.getCanvasHeight() - (y + height); GL11.glCopyPixels(x1, y1, width, height, GL11.GL_COLOR); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glRasterPos2i(int a, int b) { GL11.glRasterPos2i(a, b); }