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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aEXRTile
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRTile
calloc()
Returns a newEXRTile
instance allocated withmemCalloc
.static EXRTile.Buffer
calloc
(int capacity) Returns a newEXRTile.Buffer
instance allocated withmemCalloc
.static EXRTile.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newEXRTile.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRTile
calloc
(MemoryStack stack) Returns a newEXRTile
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRTile
Deprecated.static EXRTile.Buffer
callocStack
(int capacity) Deprecated.static EXRTile.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static EXRTile
callocStack
(MemoryStack stack) Deprecated.static EXRTile
create()
Returns a newEXRTile
instance allocated withBufferUtils
.static EXRTile.Buffer
create
(int capacity) Returns a newEXRTile.Buffer
instance allocated withBufferUtils
.static EXRTile
create
(long address) Returns a newEXRTile
instance for the specified memory address.static EXRTile.Buffer
create
(long address, int capacity) Create aEXRTile.Buffer
instance at the specified memory.static @Nullable EXRTile
createSafe
(long address) static @Nullable EXRTile.Buffer
createSafe
(long address, int capacity) int
height()
height
(int value) Sets the specified value to theheight
field.images
(int capacity) images
(PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theimages
field.int
level_x()
level_x
(int value) Sets the specified value to thelevel_x
field.int
level_y()
level_y
(int value) Sets the specified value to thelevel_y
field.static EXRTile
malloc()
Returns a newEXRTile
instance allocated withmemAlloc
.static EXRTile.Buffer
malloc
(int capacity) Returns a newEXRTile.Buffer
instance allocated withmemAlloc
.static EXRTile.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newEXRTile.Buffer
instance allocated on the specifiedMemoryStack
.static EXRTile
malloc
(MemoryStack stack) Returns a newEXRTile
instance allocated on the specifiedMemoryStack
.static EXRTile
Deprecated.static EXRTile.Buffer
mallocStack
(int capacity) Deprecated.static EXRTile.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static EXRTile
mallocStack
(MemoryStack stack) Deprecated.static int
nheight
(long struct) Unsafe version ofheight()
.static void
nheight
(long struct, int value) Unsafe version ofheight
.static PointerBuffer
nimages
(long struct, int capacity) Unsafe version ofimages
.static void
nimages
(long struct, PointerBuffer value) Unsafe version ofimages
.static int
nlevel_x
(long struct) Unsafe version oflevel_x()
.static void
nlevel_x
(long struct, int value) Unsafe version oflevel_x
.static int
nlevel_y
(long struct) Unsafe version oflevel_y()
.static void
nlevel_y
(long struct, int value) Unsafe version oflevel_y
.static int
noffset_x
(long struct) Unsafe version ofoffset_x()
.static void
noffset_x
(long struct, int value) Unsafe version ofoffset_x
.static int
noffset_y
(long struct) Unsafe version ofoffset_y()
.static void
noffset_y
(long struct, int value) Unsafe version ofoffset_y
.static int
nwidth
(long struct) Unsafe version ofwidth()
.static void
nwidth
(long struct, int value) Unsafe version ofwidth
.int
offset_x()
offset_x
(int value) Sets the specified value to theoffset_x
field.int
offset_y()
offset_y
(int value) Sets the specified value to theoffset_y
field.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.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.int
width()
width
(int value) Sets the specified value to thewidth
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aEXRTile
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
. -
offset_x
public int offset_x()- Returns:
- the value of the
offset_x
field.
-
offset_y
public int offset_y()- Returns:
- the value of the
offset_y
field.
-
level_x
public int level_x()- Returns:
- the value of the
level_x
field.
-
level_y
public int level_y()- Returns:
- the value of the
level_y
field.
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
images
- Returns:
- a
PointerBuffer
view of the data pointed to by theimages
field.
-
offset_x
Sets the specified value to theoffset_x
field. -
offset_y
Sets the specified value to theoffset_y
field. -
level_x
Sets the specified value to thelevel_x
field. -
level_y
Sets the specified value to thelevel_y
field. -
width
Sets the specified value to thewidth
field. -
height
Sets the specified value to theheight
field. -
images
Sets the address of the specifiedPointerBuffer
to theimages
field. -
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 newEXRTile
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newEXRTile
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newEXRTile
instance allocated withBufferUtils
. -
create
Returns a newEXRTile
instance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRTile.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newEXRTile.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newEXRTile.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aEXRTile.Buffer
instance 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 newEXRTile
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newEXRTile
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newEXRTile.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newEXRTile.Buffer
instance allocated on the specifiedMemoryStack
and 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
-