Class ExrWriteImageCreateInfo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ExrWriteImageCreateInfo.Buffer>
org.lwjgl.system.StructBuffer<ExrWriteImageCreateInfo, ExrWriteImageCreateInfo.Buffer>
org.lwjgl.util.tinyexr.ExrWriteImageCreateInfo.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<ExrWriteImageCreateInfo>, NativeResource, Pointer
- Enclosing class:
ExrWriteImageCreateInfo
public static class ExrWriteImageCreateInfo.Buffer
extends StructBuffer<ExrWriteImageCreateInfo, ExrWriteImageCreateInfo.Buffer>
implements NativeResource
An array of
ExrWriteImageCreateInfo 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 newExrWriteImageCreateInfo.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionchannels()Sets the address of the specifiedExrWriteChannelInfo.Bufferto thechannelsfield.intcompression(int value) Sets the specified value to thecompressionfield.intcompression_level(int value) Sets the specified value to thecompression_levelfield.@Nullable ExrBox2idata_window(@Nullable ExrBox2i value) Sets the address of the specifiedExrBox2ito thedata_windowfield.@Nullable ExrBox2idisplay_window(@Nullable ExrBox2i value) Sets the address of the specifiedExrBox2ito thedisplay_windowfield.intflags()flags(int value) Sets the specified value to theflagsfield.intheight()height(int value) Sets the specified value to theheightfield.int@Nullable ByteBufferpart_name(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thepart_namefield.@Nullable Stringinttile_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 newExrWriteImageCreateInfo.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
ExrWriteImageCreateInfo.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.
-
num_channels
- Returns:
- the value of the
num_channelsfield.
-
channels
- Returns:
- a
ExrWriteChannelInfo.Bufferview of the struct array pointed to by thechannelsfield.
-
compression
- Returns:
- the value of the
compressionfield.
-
compression_level
- Returns:
- the value of the
compression_levelfield.
-
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.
-
data_window
- Returns:
- a
ExrBox2iview of the struct pointed to by thedata_windowfield.
-
display_window
- Returns:
- a
ExrBox2iview of the struct pointed to by thedisplay_windowfield.
-
part_name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepart_namefield.
-
part_nameString
- Returns:
- the null-terminated string pointed to by the
part_namefield.
-
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
channels
public ExrWriteImageCreateInfo.Buffer channels(@NativeType("ExrWriteChannelInfo const *") ExrWriteChannelInfo.Buffer value) Sets the address of the specifiedExrWriteChannelInfo.Bufferto thechannelsfield. -
compression
Sets the specified value to thecompressionfield. -
compression_level
Sets the specified value to thecompression_levelfield. -
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. -
data_window
public ExrWriteImageCreateInfo.Buffer data_window(@NativeType("ExrBox2i const *") @Nullable ExrBox2i value) Sets the address of the specifiedExrBox2ito thedata_windowfield. -
display_window
public ExrWriteImageCreateInfo.Buffer display_window(@NativeType("ExrBox2i const *") @Nullable ExrBox2i value) Sets the address of the specifiedExrBox2ito thedisplay_windowfield. -
part_name
public ExrWriteImageCreateInfo.Buffer part_name(@NativeType("char const *") @Nullable ByteBuffer value) Sets the address of the specified encoded string to thepart_namefield.
-