GLPixelBufferProvider implementation.
GLPixelBufferProvider produces a GLPixelBuffer.
You may use defaultProviderNoRowStride.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | GLPixelBuffer.
Pixel attributes. |
| public static interface | GLPixelBuffer.
Allows user to interface with another toolkit to define |
| public static interface | GLPixelBuffer.
Single |
| Modifier and Type | Field and Description |
|---|---|
| public final boolean | |
| public final Buffer | buffer
Buffer holding the pixel data. |
| public final int | bufferElemSize
Buffer element size in bytes. |
| public final int | byteSize
Byte size of the buffer. |
| public static final GLPixelBuffer. | defaultProviderNoRowStride
Default |
| public static final GLPixelBuffer. | defaultProviderWithRowStride
Default |
| public final int | depth
Depth in pixels. |
| private boolean | |
| public final int | |
| public final boolean | pack
Data packing direction. |
| public final GLPixelBuffer. | |
| public final int |
| Access | Constructor and Description |
|---|---|
| public | GLPixelBuffer(final GLPixelBuffer.
the desired pixelAttributes,GLPixelAttributestrue for read mode GPU -> CPU, e.g. glReadPixels.
false for write mode CPU -> GPU, e.g. glTexImage2D.in pixels width, final int in pixels height, final int in pixels depth, final Buffer the backing array buffer, final boolean If allowRowStride)true, allow row-stride, otherwise not. See requiresNewBuffer(GL, int, int, int).
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Buffer | |
| public void | |
| public Buffer | |
| public final boolean | |
| public boolean | |
| public int | |
| public int | |
| public Buffer | |
| public boolean | requiresNewBuffer(final GL
the corresponding current GL context object gl, final int new width in pixels newWidth, final int new height in pixels newHeight, int if > 0, the pre-calculated minimum byte-size for the resulting buffer, otherwise ignore. newByteSize)Returns true, if |
| public Buffer | |
| public StringBuilder | |
| public String |