Example usage for org.lwjgl.opengl GL11 GL_COLOR

List of usage examples for org.lwjgl.opengl GL11 GL_COLOR

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL11 GL_COLOR.

Prototype

int GL_COLOR

To view the source code for org.lwjgl.opengl GL11 GL_COLOR.

Click Source Link

Document

PixelCopyType

Usage

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);/*from w  ww.j a v  a  2s. c  o  m*/

    int x1 = x;
    int y1 = g2d.getCanvasHeight() - (y + height);
    GL11.glCopyPixels(x1, y1, width, height, GL11.GL_COLOR);
}