Package org.lwjgl.util.tinyexr
Class EXRTile
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct EXRTile {
int offset_x;
int offset_y;
int level_x;
int level_y;
int width;
int height;
unsigned char ** images;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionEXRTile(ByteBuffer container) Creates aEXRTileinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRTilecalloc()Returns a newEXRTileinstance allocated withmemCalloc.static EXRTile.Buffercalloc(int capacity) Returns a newEXRTile.Bufferinstance allocated withmemCalloc.static EXRTile.Buffercalloc(int capacity, MemoryStack stack) Returns a newEXRTile.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRTilecalloc(MemoryStack stack) Returns a newEXRTileinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRTileDeprecated.static EXRTile.BuffercallocStack(int capacity) Deprecated.static EXRTile.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static EXRTilecallocStack(MemoryStack stack) Deprecated.static EXRTilecreate()Returns a newEXRTileinstance allocated withBufferUtils.static EXRTile.Buffercreate(int capacity) Returns a newEXRTile.Bufferinstance allocated withBufferUtils.static EXRTilecreate(long address) Returns a newEXRTileinstance for the specified memory address.static EXRTile.Buffercreate(long address, int capacity) Create aEXRTile.Bufferinstance at the specified memory.static @Nullable EXRTilecreateSafe(long address) static @Nullable EXRTile.BuffercreateSafe(long address, int capacity) intheight()height(int value) Sets the specified value to theheightfield.images(int capacity) images(PointerBuffer value) Sets the address of the specifiedPointerBufferto theimagesfield.intlevel_x()level_x(int value) Sets the specified value to thelevel_xfield.intlevel_y()level_y(int value) Sets the specified value to thelevel_yfield.static EXRTilemalloc()Returns a newEXRTileinstance allocated withmemAlloc.static EXRTile.Buffermalloc(int capacity) Returns a newEXRTile.Bufferinstance allocated withmemAlloc.static EXRTile.Buffermalloc(int capacity, MemoryStack stack) Returns a newEXRTile.Bufferinstance allocated on the specifiedMemoryStack.static EXRTilemalloc(MemoryStack stack) Returns a newEXRTileinstance allocated on the specifiedMemoryStack.static EXRTileDeprecated.static EXRTile.BuffermallocStack(int capacity) Deprecated.static EXRTile.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static EXRTilemallocStack(MemoryStack stack) Deprecated.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static PointerBuffernimages(long struct, int capacity) Unsafe version ofimages.static voidnimages(long struct, PointerBuffer value) Unsafe version ofimages.static intnlevel_x(long struct) Unsafe version oflevel_x().static voidnlevel_x(long struct, int value) Unsafe version oflevel_x.static intnlevel_y(long struct) Unsafe version oflevel_y().static voidnlevel_y(long struct, int value) Unsafe version oflevel_y.static intnoffset_x(long struct) Unsafe version ofoffset_x().static voidnoffset_x(long struct, int value) Unsafe version ofoffset_x.static intnoffset_y(long struct) Unsafe version ofoffset_y().static voidnoffset_y(long struct, int value) Unsafe version ofoffset_y.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.intoffset_x()offset_x(int value) Sets the specified value to theoffset_xfield.intoffset_y()offset_y(int value) Sets the specified value to theoffset_yfield.set(int offset_x, int offset_y, int level_x, int level_y, int width, int height, PointerBuffer images) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.intwidth()width(int value) Sets the specified value to thewidthfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
OFFSET_X
public static final int OFFSET_XThe struct member offsets. -
OFFSET_Y
public static final int OFFSET_YThe struct member offsets. -
LEVEL_X
public static final int LEVEL_XThe struct member offsets. -
LEVEL_Y
public static final int LEVEL_YThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
IMAGES
public static final int IMAGESThe struct member offsets.
-
-
Constructor Details
-
EXRTile
Creates aEXRTileinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
offset_x
public int offset_x()- Returns:
- the value of the
offset_xfield.
-
offset_y
public int offset_y()- Returns:
- the value of the
offset_yfield.
-
level_x
public int level_x()- Returns:
- the value of the
level_xfield.
-
level_y
public int level_y()- Returns:
- the value of the
level_yfield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
images
- Returns:
- a
PointerBufferview of the data pointed to by theimagesfield.
-
offset_x
Sets the specified value to theoffset_xfield. -
offset_y
Sets the specified value to theoffset_yfield. -
level_x
Sets the specified value to thelevel_xfield. -
level_y
Sets the specified value to thelevel_yfield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
images
Sets the address of the specifiedPointerBufferto theimagesfield. -
set
public EXRTile set(int offset_x, int offset_y, int level_x, int level_y, int width, int height, PointerBuffer images) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newEXRTileinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newEXRTileinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newEXRTileinstance allocated withBufferUtils. -
create
Returns a newEXRTileinstance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRTile.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newEXRTile.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newEXRTile.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aEXRTile.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newEXRTileinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newEXRTileinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newEXRTile.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newEXRTile.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
noffset_x
public static int noffset_x(long struct) Unsafe version ofoffset_x(). -
noffset_y
public static int noffset_y(long struct) Unsafe version ofoffset_y(). -
nlevel_x
public static int nlevel_x(long struct) Unsafe version oflevel_x(). -
nlevel_y
public static int nlevel_y(long struct) Unsafe version oflevel_y(). -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static int nheight(long struct) Unsafe version ofheight(). -
nimages
Unsafe version ofimages. -
noffset_x
public static void noffset_x(long struct, int value) Unsafe version ofoffset_x. -
noffset_y
public static void noffset_y(long struct, int value) Unsafe version ofoffset_y. -
nlevel_x
public static void nlevel_x(long struct, int value) Unsafe version oflevel_x. -
nlevel_y
public static void nlevel_y(long struct, int value) Unsafe version oflevel_y. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight. -
nimages
Unsafe version ofimages. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-