|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Provider for AWTGLPixelBuffer instances.
More...
Public Member Functions | |||||||||||||||||
| AWTGLPixelBufferProvider (final boolean allowRowStride) | |||||||||||||||||
| boolean | getAllowRowStride () | ||||||||||||||||
Allow GL2ES3#GL_PACK_ROW_LENGTH, or GL2ES2#GL_UNPACK_ROW_LENGTH. More... | |||||||||||||||||
| GLPixelAttributes | getAttributes (final GL gl, final int componentCount, final boolean pack) | ||||||||||||||||
Returns RGB[A] GLPixelAttributes matching GL, componentCount and pack. More... | |||||||||||||||||
| GLPixelAttributes | getAttributes (final GLProfile glp, final int componentCount) | ||||||||||||||||
| PixelFormat.Composition | getHostPixelComp (final GLProfile glp, final int componentCount) | ||||||||||||||||
Returns the host PixelFormat.Composition matching GL and componentCount if required by implementation, otherwise null.
| |||||||||||||||||
| int | getAWTFormat (final GLProfile glp, final int componentCount) | ||||||||||||||||
| Returns one of. More... | |||||||||||||||||
| PixelFormat | getAWTPixelFormat (final GLProfile glp, final int componentCount) | ||||||||||||||||
| AWTGLPixelBuffer | allocate (final GL gl, final PixelFormat.Composition hostPixComp, final GLPixelAttributes pixelAttributes, final boolean pack, final int width, final int height, final int depth, final int minByteSize) | ||||||||||||||||
Allocates a new GLPixelBuffer object.The minimum required remaining byte size equals to minByteSize, if > 0, otherwise utilize GLBuffers#sizeof(GL, int[], int, int, int, int, int, boolean) to calculate it.
| |||||||||||||||||
| boolean | getAllowRowStride () | ||||||||||||||||
Allow GL2ES3#GL_PACK_ROW_LENGTH, or GL2ES2#GL_UNPACK_ROW_LENGTH. More... | |||||||||||||||||
| GLPixelAttributes | getAttributes (GL gl, int componentCount, boolean pack) | ||||||||||||||||
Returns RGB[A] GLPixelAttributes matching GL, componentCount and pack. More... | |||||||||||||||||
| PixelFormat.Composition | getHostPixelComp (final GLProfile glp, final int componentCount) | ||||||||||||||||
Returns the host PixelFormat.Composition matching GL and componentCount if required by implementation, otherwise null. More... | |||||||||||||||||
| GLPixelBuffer | allocate (GL gl, PixelFormat.Composition hostPixComp, GLPixelAttributes pixelAttributes, boolean pack, int width, int height, int depth, int minByteSize) | ||||||||||||||||
Allocates a new GLPixelBuffer object. More... | |||||||||||||||||
Provider for AWTGLPixelBuffer instances.
Definition at line 162 of file AWTGLPixelBuffer.java.
| com.jogamp.opengl.util.awt.AWTGLPixelBuffer.AWTGLPixelBufferProvider.AWTGLPixelBufferProvider | ( | final boolean | allowRowStride | ) |
| allowRowStride | If true, allow row-stride, otherwise not. See getAllowRowStride() and AWTGLPixelBuffer#requiresNewBuffer(GL, int, int, int). If true, user shall decide whether to use a width-aligned image. |
Definition at line 170 of file AWTGLPixelBuffer.java.
| AWTGLPixelBuffer com.jogamp.opengl.util.awt.AWTGLPixelBuffer.AWTGLPixelBufferProvider.allocate | ( | final GL | gl, |
| final PixelFormat.Composition | hostPixComp, | ||
| final GLPixelAttributes | pixelAttributes, | ||
| final boolean | pack, | ||
| final int | width, | ||
| final int | height, | ||
| final int | depth, | ||
| final int | minByteSize | ||
| ) |
Allocates a new GLPixelBuffer object.The minimum required remaining byte size equals to minByteSize, if > 0, otherwise utilize GLBuffers#sizeof(GL, int[], int, int, int, int, int, boolean) to calculate it.
| gl | the corresponding current GL context object |
| hostPixComp | host pixel format, i.e. of the source or sink depending on pack, e.g. fetched via getHostPixelComp(GLProfile, int). If null, pixelAttributes instance maybe used or an exception is thrown, depending on implementation semantics. |
| pixelAttributes | the desired GLPixelAttributes, e.g. fetched via getAttributes(GL, int, boolean) |
| pack | true for read mode GPU -> CPU, e.g. glReadPixels. false for write mode CPU -> GPU, e.g. glTexImage2D. |
| width | in pixels |
| height | in pixels |
| depth | in pixels |
| minByteSize | if > 0, the pre-calculated minimum byte-size for the resulting buffer, otherwise ignore. |
Returns an array backed IntBuffer of size
width*height* SIZEOF_INT.
Implements com.jogamp.opengl.util.GLPixelBuffer.GLPixelBufferProvider.
Reimplemented in com.jogamp.opengl.util.awt.AWTGLPixelBuffer.SingleAWTGLPixelBufferProvider.
Definition at line 233 of file AWTGLPixelBuffer.java.
| boolean com.jogamp.opengl.util.awt.AWTGLPixelBuffer.AWTGLPixelBufferProvider.getAllowRowStride | ( | ) |
Allow GL2ES3#GL_PACK_ROW_LENGTH, or GL2ES2#GL_UNPACK_ROW_LENGTH.
Implements com.jogamp.opengl.util.GLPixelBuffer.GLPixelBufferProvider.
Definition at line 175 of file AWTGLPixelBuffer.java.
| GLPixelAttributes com.jogamp.opengl.util.awt.AWTGLPixelBuffer.AWTGLPixelBufferProvider.getAttributes | ( | final GL | gl, |
| final int | componentCount, | ||
| final boolean | pack | ||
| ) |
Returns RGB[A] GLPixelAttributes matching GL, componentCount and pack.
| gl | the corresponding current GL context object |
| componentCount | RGBA component count, i.e. 1 (luminance, alpha or red), 3 (RGB) or 4 (RGBA) |
| pack | true for read mode GPU -> CPU, e.g. glReadPixels. false for write mode CPU -> GPU, e.g. glTexImage2D. |
Implements com.jogamp.opengl.util.GLPixelBuffer.GLPixelBufferProvider.
Definition at line 178 of file AWTGLPixelBuffer.java.
| GLPixelAttributes com.jogamp.opengl.util.awt.AWTGLPixelBuffer.AWTGLPixelBufferProvider.getAttributes | ( | final GLProfile | glp, |
| final int | componentCount | ||
| ) |
| int com.jogamp.opengl.util.awt.AWTGLPixelBuffer.AWTGLPixelBufferProvider.getAWTFormat | ( | final GLProfile | glp, |
| final int | componentCount | ||
| ) |
Returns one of.
BufferedImage#TYPE_INT_ARGB <-> GL#GL_BGRA BufferedImage#TYPE_INT_BGR <-> GL#GL_RGBA BufferedImage#TYPE_INT_RGB <-> GL#GL_BGRA BufferedImage#TYPE_INT_BGR <-> GL#GL_RGBA | glp | |
| componentCount |
Definition at line 209 of file AWTGLPixelBuffer.java.
| PixelFormat com.jogamp.opengl.util.awt.AWTGLPixelBuffer.AWTGLPixelBufferProvider.getAWTPixelFormat | ( | final GLProfile | glp, |
| final int | componentCount | ||
| ) |
Definition at line 218 of file AWTGLPixelBuffer.java.
| PixelFormat.Composition com.jogamp.opengl.util.awt.AWTGLPixelBuffer.AWTGLPixelBufferProvider.getHostPixelComp | ( | final GLProfile | glp, |
| final int | componentCount | ||
| ) |
Returns the host PixelFormat.Composition matching GL and componentCount if required by implementation, otherwise null.
| glp | the corresponding current GL context object |
| componentCount | RGBA component count, i.e. 1 (luminance, alpha or red), 3 (RGB) or 4 (RGBA) |
Returns a valid PixelFormat.Composition instance from getAWTPixelFormat(GLProfile, int).
Implements com.jogamp.opengl.util.GLPixelBuffer.GLPixelBufferProvider.
Definition at line 193 of file AWTGLPixelBuffer.java.