|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
DataBuffer specialization using NIO direct buffer of type DataBuffer#TYPE_INT as storage.
More...
Classes | |
| class | BufferedImageInt |
| class | DirectWritableRaster |
Public Member Functions | |
| DirectDataBufferInt (final int size) | |
Constructs an nio integer-based DataBuffer with a single bank and the specified size. More... | |
| DirectDataBufferInt (final int size, final int numBanks) | |
Constructs an nio integer-based DataBuffer with the specified number of banks, all of which are the specified size. More... | |
| DirectDataBufferInt (final ByteBuffer dataArray, final int size) | |
Constructs an nio integer-based DataBuffer with a single bank using the specified array. More... | |
| IntBuffer | getData () |
Returns the default (first) int data array in DataBuffer as an IntBuffer representation. More... | |
| ByteBuffer | getDataBytes () |
Returns the default (first) int data array in DataBuffer as a ByteBuffer representation. More... | |
| IntBuffer | getData (final int bank) |
Returns the data array for the specified bank as an IntBuffer representation. More... | |
| ByteBuffer | getDataBytes (final int bank) |
Returns the data array for the specified bank as a ByteBuffer representation. More... | |
| int | getElem (final int i) |
| Returns the requested data array element from the first (default) bank. More... | |
| int | getElem (final int bank, final int i) |
| Returns the requested data array element from the specified bank. More... | |
| void | setElem (final int i, final int val) |
| Sets the requested data array element in the first (default) bank to the specified value. More... | |
| void | setElem (final int bank, final int i, final int val) |
Sets the requested data array element in the specified bank to the integer value i. More... | |
Static Public Member Functions | |
| static BufferedImageInt | createBufferedImage (final int width, final int height, final int imageType, Point location, final Hashtable<?,?> properties) |
Creates a BufferedImageInt using a direct color model in sRGB color space. More... | |
DataBuffer specialization using NIO direct buffer of type DataBuffer#TYPE_INT as storage.
Definition at line 48 of file DirectDataBufferInt.java.
| com.jogamp.nativewindow.awt.DirectDataBufferInt.DirectDataBufferInt | ( | final int | size | ) |
Constructs an nio integer-based DataBuffer with a single bank and the specified size.
| size | The size of the DataBuffer. |
Definition at line 194 of file DirectDataBufferInt.java.
| com.jogamp.nativewindow.awt.DirectDataBufferInt.DirectDataBufferInt | ( | final int | size, |
| final int | numBanks | ||
| ) |
Constructs an nio integer-based DataBuffer with the specified number of banks, all of which are the specified size.
| size | The size of the banks in the DataBuffer. |
| numBanks | The number of banks in the aDataBuffer. |
Definition at line 211 of file DirectDataBufferInt.java.
| com.jogamp.nativewindow.awt.DirectDataBufferInt.DirectDataBufferInt | ( | final ByteBuffer | dataArray, |
| final int | size | ||
| ) |
Constructs an nio integer-based DataBuffer with a single bank using the specified array.
Only the first size elements should be used by accessors of this DataBuffer. dataArray must be large enough to hold size elements.
| dataArray | The NIO ByteBuffer array, holding the integer data for the DataBuffer. |
| size | The size of the DataBuffer bank. |
Definition at line 235 of file DirectDataBufferInt.java.
|
static |
Creates a BufferedImageInt using a direct color model in sRGB color space.
It uses a DirectWritableRaster utilizing DirectDataBufferInt storage.
Note that due to using the custom storage type DirectDataBufferInt, the resulting BufferedImage's image-type is of TYPE_CUSTOM. We are not able to change this detail, since the AWT image implementation associates the image-type with a build-in storage-type. Use BufferedImageInt#getCustomType() to retrieve the custom image-type, which will return the imageType value passed here.
| width | |
| height | |
| imageType | one of TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_RGB or TYPE_INT_BGR. |
| location | origin, if null 0/0 is assumed. |
| properties | Hashtable of String/Object pairs. Used for BufferedImage#getProperty(String) etc. |
Definition at line 109 of file DirectDataBufferInt.java.
| IntBuffer com.jogamp.nativewindow.awt.DirectDataBufferInt.getData | ( | ) |
Returns the default (first) int data array in DataBuffer as an IntBuffer representation.
Definition at line 251 of file DirectDataBufferInt.java.
| IntBuffer com.jogamp.nativewindow.awt.DirectDataBufferInt.getData | ( | final int | bank | ) |
Returns the data array for the specified bank as an IntBuffer representation.
| bank | The bank whose data array you want to get. |
Definition at line 271 of file DirectDataBufferInt.java.
| ByteBuffer com.jogamp.nativewindow.awt.DirectDataBufferInt.getDataBytes | ( | ) |
Returns the default (first) int data array in DataBuffer as a ByteBuffer representation.
Definition at line 260 of file DirectDataBufferInt.java.
| ByteBuffer com.jogamp.nativewindow.awt.DirectDataBufferInt.getDataBytes | ( | final int | bank | ) |
Returns the data array for the specified bank as a ByteBuffer representation.
| bank | The bank whose data array you want to get. |
Definition at line 281 of file DirectDataBufferInt.java.
| int com.jogamp.nativewindow.awt.DirectDataBufferInt.getElem | ( | final int | bank, |
| final int | i | ||
| ) |
Returns the requested data array element from the specified bank.
| bank | The bank from which you want to get a data array element. |
| i | The data array element you want to get. |
Definition at line 308 of file DirectDataBufferInt.java.
| int com.jogamp.nativewindow.awt.DirectDataBufferInt.getElem | ( | final int | i | ) |
Returns the requested data array element from the first (default) bank.
| i | The data array element you want to get. |
Definition at line 294 of file DirectDataBufferInt.java.
| void com.jogamp.nativewindow.awt.DirectDataBufferInt.setElem | ( | final int | bank, |
| final int | i, | ||
| final int | val | ||
| ) |
Sets the requested data array element in the specified bank to the integer value i.
| bank | The bank in which you want to set the data array element. |
| i | The data array element you want to set. |
| val | The integer value to which you want to set the specified data array element. |
Definition at line 336 of file DirectDataBufferInt.java.
| void com.jogamp.nativewindow.awt.DirectDataBufferInt.setElem | ( | final int | i, |
| final int | val | ||
| ) |
Sets the requested data array element in the first (default) bank to the specified value.
| i | The data array element you want to set. |
| val | The integer value to which you want to set the data array element. |
Definition at line 322 of file DirectDataBufferInt.java.