Class ExrImageInfo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ExrImageInfo.Buffer>
org.lwjgl.system.StructBuffer<ExrImageInfo, ExrImageInfo.Buffer>
org.lwjgl.util.tinyexr.ExrImageInfo.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<ExrImageInfo>, NativeResource, Pointer
- Enclosing class:
ExrImageInfo
public static class ExrImageInfo.Buffer
extends StructBuffer<ExrImageInfo, ExrImageInfo.Buffer>
implements NativeResource
An array of
ExrImageInfo structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newExrImageInfo.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintcompression(int value) Sets the specified value to thecompressionfield.data_window(Consumer<ExrBox2i> consumer) Passes thedata_windowfield to the specifiedConsumer.data_window(ExrBox2i value) Copies the specifiedExrBox2ito thedata_windowfield.display_window(Consumer<ExrBox2i> consumer) Passes thedisplay_windowfield to the specifiedConsumer.display_window(ExrBox2i value) Copies the specifiedExrBox2ito thedisplay_windowfield.intflags()flags(int value) Sets the specified value to theflagsfield.intheight()height(int value) Sets the specified value to theheightfield.intnum_channels(int value) Sets the specified value to thenum_channelsfield.intnum_parts(int value) Sets the specified value to thenum_partsfield.intnum_x_levels(int value) Sets the specified value to thenum_x_levelsfield.intnum_y_levels(int value) Sets the specified value to thenum_y_levelsfield.floatpixel_aspect_ratio(float value) Sets the specified value to thepixel_aspect_ratiofield.screen_window_center(Consumer<ExrVec2f> consumer) Passes thescreen_window_centerfield to the specifiedConsumer.screen_window_center(ExrVec2f value) Copies the specifiedExrVec2fto thescreen_window_centerfield.floatscreen_window_width(float value) Sets the specified value to thescreen_window_widthfield.inttile_size_x(int value) Sets the specified value to thetile_size_xfield.inttile_size_y(int value) Sets the specified value to thetile_size_yfield.intwidth()width(int value) Sets the specified value to thewidthfield.Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newExrImageInfo.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
ExrImageInfo.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
width
- Returns:
- the value of the
widthfield.
-
height
- Returns:
- the value of the
heightfield.
-
data_window
-
display_window
-
num_channels
- Returns:
- the value of the
num_channelsfield.
-
num_parts
- Returns:
- the value of the
num_partsfield.
-
compression
- Returns:
- the value of the
compressionfield.
-
flags
- Returns:
- the value of the
flagsfield.
-
tile_size_x
- Returns:
- the value of the
tile_size_xfield.
-
tile_size_y
- Returns:
- the value of the
tile_size_yfield.
-
num_x_levels
- Returns:
- the value of the
num_x_levelsfield.
-
num_y_levels
- Returns:
- the value of the
num_y_levelsfield.
-
pixel_aspect_ratio
public float pixel_aspect_ratio()- Returns:
- the value of the
pixel_aspect_ratiofield.
-
screen_window_center
-
screen_window_width
public float screen_window_width()- Returns:
- the value of the
screen_window_widthfield.
-
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
data_window
Copies the specifiedExrBox2ito thedata_windowfield. -
data_window
Passes thedata_windowfield to the specifiedConsumer. -
display_window
Copies the specifiedExrBox2ito thedisplay_windowfield. -
display_window
Passes thedisplay_windowfield to the specifiedConsumer. -
num_channels
Sets the specified value to thenum_channelsfield. -
num_parts
Sets the specified value to thenum_partsfield. -
compression
Sets the specified value to thecompressionfield. -
flags
Sets the specified value to theflagsfield. -
tile_size_x
Sets the specified value to thetile_size_xfield. -
tile_size_y
Sets the specified value to thetile_size_yfield. -
num_x_levels
Sets the specified value to thenum_x_levelsfield. -
num_y_levels
Sets the specified value to thenum_y_levelsfield. -
pixel_aspect_ratio
Sets the specified value to thepixel_aspect_ratiofield. -
screen_window_center
Copies the specifiedExrVec2fto thescreen_window_centerfield. -
screen_window_center
Passes thescreen_window_centerfield to the specifiedConsumer. -
screen_window_width
Sets the specified value to thescreen_window_widthfield.
-