|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Generic PixelRectangle implementation. More...
Public Member Functions | |
| GenericPixelRect (final PixelFormat pixelformat, final DimensionImmutable size, int strideInBytes, final boolean isGLOriented, final ByteBuffer pixels) throws IllegalArgumentException, IndexOutOfBoundsException | |
| GenericPixelRect (final PixelRectangle src) throws IllegalArgumentException, IndexOutOfBoundsException | |
| Copy ctor validating src. More... | |
| int | hashCode () |
| PixelFormat | getPixelformat () |
Returns the PixelFormat. More... | |
| DimensionImmutable | getSize () |
| Returns the size, i.e. More... | |
| int | getStride () |
| Returns stride in byte-size, i.e. More... | |
| boolean | isGLOriented () |
Returns true if the memory is laid out in OpenGL's coordinate system, origin at bottom left. More... | |
| ByteBuffer | getPixels () |
| Returns the pixels. More... | |
| final String | toString () |
| int | hashCode () |
| PixelFormat | getPixelformat () |
Returns the PixelFormat. More... | |
| DimensionImmutable | getSize () |
| Returns the size, i.e. More... | |
| int | getStride () |
| Returns stride in byte-size, i.e. More... | |
| boolean | isGLOriented () |
Returns true if the memory is laid out in OpenGL's coordinate system, origin at bottom left. More... | |
| ByteBuffer | getPixels () |
| Returns the pixels. More... | |
| String | toString () |
Protected Attributes | |
| final PixelFormat | pixelformat |
| final DimensionImmutable | size |
| final int | strideInBytes |
| final boolean | isGLOriented |
| final ByteBuffer | pixels |
Generic PixelRectangle implementation.
Definition at line 91 of file PixelRectangle.java.
| com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.GenericPixelRect | ( | final PixelFormat | pixelformat, |
| final DimensionImmutable | size, | ||
| int | strideInBytes, | ||
| final boolean | isGLOriented, | ||
| final ByteBuffer | pixels | ||
| ) | throws IllegalArgumentException, IndexOutOfBoundsException |
| pixelformat | |
| size | |
| strideInBytes | stride in byte-size, i.e. byte count from one line to the next. If not zero, value must be >= width * bytes-per-pixel. If zero, stride is set to width * bytes-per-pixel. |
| isGLOriented | |
| pixels |
| IllegalArgumentException | if strideInBytes is invalid. |
| IndexOutOfBoundsException | if pixels has insufficient bytes left |
Definition at line 112 of file PixelRectangle.java.
| com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.GenericPixelRect | ( | final PixelRectangle | src | ) | throws IllegalArgumentException, IndexOutOfBoundsException |
Copy ctor validating src.
| src |
| IllegalArgumentException | if strideInBytes is invalid. |
| IndexOutOfBoundsException | if pixels has insufficient bytes left |
Definition at line 139 of file PixelRectangle.java.
| PixelFormat com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.getPixelformat | ( | ) |
Returns the PixelFormat.
Implements com.jogamp.nativewindow.util.PixelRectangle.
Definition at line 164 of file PixelRectangle.java.
| ByteBuffer com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.getPixels | ( | ) |
Returns the pixels.
Implements com.jogamp.nativewindow.util.PixelRectangle.
Definition at line 184 of file PixelRectangle.java.
| DimensionImmutable com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.getSize | ( | ) |
Returns the size, i.e.
width and height.
Implements com.jogamp.nativewindow.util.PixelRectangle.
Definition at line 169 of file PixelRectangle.java.
| int com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.getStride | ( | ) |
Returns stride in byte-size, i.e.
byte count from one line to the next.
Must be >= getPixelformat().bytesPerPixel() * getSize().getWidth().
Implements com.jogamp.nativewindow.util.PixelRectangle.
Definition at line 174 of file PixelRectangle.java.
| int com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.hashCode | ( | ) |
Computes a hash code over:
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
Computes a hash code over:
Implements com.jogamp.nativewindow.util.PixelRectangle.
Definition at line 146 of file PixelRectangle.java.
| boolean com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.isGLOriented | ( | ) |
Returns true if the memory is laid out in OpenGL's coordinate system, origin at bottom left.
Otherwise returns false, i.e. origin at top left.
Implements com.jogamp.nativewindow.util.PixelRectangle.
Definition at line 179 of file PixelRectangle.java.
| final String com.jogamp.nativewindow.util.PixelRectangle.GenericPixelRect.toString | ( | ) |
Implements com.jogamp.nativewindow.util.PixelRectangle.
Definition at line 189 of file PixelRectangle.java.
|
protected |
Definition at line 95 of file PixelRectangle.java.
|
protected |
Definition at line 92 of file PixelRectangle.java.
|
protected |
Definition at line 96 of file PixelRectangle.java.
|
protected |
Definition at line 93 of file PixelRectangle.java.
|
protected |
Definition at line 94 of file PixelRectangle.java.