Class AWTGLPixelBuffer

java.lang.Object
com.jogamp.opengl.util.GLPixelBuffer
com.jogamp.opengl.util.awt.AWTGLPixelBuffer

public class AWTGLPixelBuffer extends GLPixelBuffer
AWT GLPixelBuffer backed by an BufferedImage of type BufferedImage.TYPE_INT_ARGB or BufferedImage.TYPE_INT_RGB.

Implementation uses an array backed IntBuffer.

AWTGLPixelBuffer can be produced via AWTGLPixelBuffer.AWTGLPixelBufferProvider's allocate(..).

See GLPixelBuffer.requiresNewBuffer(GL, int, int, int) for GLPixelBuffer.allowRowStride details.

If using allowRowStride == true, user may needs to get the aligned image since GLPixelBuffer.requiresNewBuffer(GL, int, int, int) will allow different width in this case.