Package com.jogamp.nativewindow.util
Interface PixelRectangle
- All Known Subinterfaces:
Display.PointerIcon
- All Known Implementing Classes:
PixelRectangle.GenericPixelRect,PNGPixelRect
public interface PixelRectangle
Pixel Rectangle identified by it's
hashCode().
The getPixels() are assumed to be immutable.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classGeneric PixelRectangle implementation -
Method Summary
Modifier and TypeMethodDescriptionReturns thePixelFormat.Returns the pixels.getSize()Returns the size, i.e.intReturns stride in byte-size, i.e.inthashCode()Computes a hash code over: pixelformat size stride isGLOriented pixelsbooleanReturnstrueif the memory is laid out in OpenGL's coordinate system, origin at bottom left.toString()
-
Method Details
-
hashCode
int hashCode()Computes a hash code over:
- pixelformat
- size
- stride
- isGLOriented
- pixels
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
-
getPixelformat
PixelFormat getPixelformat()Returns thePixelFormat. -
getSize
DimensionImmutable getSize()Returns the size, i.e. width and height. -
getStride
int getStride()Returns stride in byte-size, i.e. byte count from one line to the next.Must be >=
getPixelformat().bytesPerPixel()*getSize().getWidth(). -
isGLOriented
boolean isGLOriented()Returnstrueif the memory is laid out in OpenGL's coordinate system, origin at bottom left. Otherwise returnsfalse, i.e. origin at top left. -
getPixels
ByteBuffer getPixels()Returns the pixels. -
toString
String toString()
-