List of usage examples for org.lwjgl.opengl GL11 glCopyPixels
public static native void glCopyPixels(@NativeType("GLint") int x, @NativeType("GLint") int y, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLenum") int type);
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);//w ww. ja va 2 s.c o m int x1 = x; 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 glCopyPixels(int a, int b, int c, int d, int e) { GL11.glCopyPixels(a, b, c, d, e); }