Package org.lwjgl.util.tinyexr
Class EXRImage.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<EXRImage,EXRImage.Buffer>
-
- org.lwjgl.util.tinyexr.EXRImage.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<EXRImage>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- EXRImage
public static class EXRImage.Buffer extends org.lwjgl.system.StructBuffer<EXRImage,EXRImage.Buffer> implements org.lwjgl.system.NativeResource
An array ofEXRImagestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intheight()EXRImage.Bufferheight(int value)Sets the specified value to theheightfield.org.lwjgl.PointerBufferimages()EXRImage.Bufferimages(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theEXRImage.images()field.intlevel_x()EXRImage.Bufferlevel_x(int value)Sets the specified value to theEXRImage.level_x()field.intlevel_y()EXRImage.Bufferlevel_y(int value)Sets the specified value to theEXRImage.level_y()field.EXRImagenext_level()EXRImage.Buffernext_level(EXRImage value)Sets the address of the specifiedEXRImageto theEXRImage.next_level()field.intnum_channels()EXRImage.Buffernum_channels(int value)Sets the specified value to thenum_channelsfield.intnum_tiles()EXRTile.Buffertiles()EXRImage.Buffertiles(EXRTile.Buffer value)Sets the address of the specifiedEXRTile.Bufferto theEXRImage.tiles()field.intwidth()EXRImage.Bufferwidth(int value)Sets the specified value to thewidthfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newEXRImage.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 byEXRImage.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 Detail
-
tiles
@Nullable public EXRTile.Buffer tiles()
- Returns:
- a
EXRTile.Bufferview of the struct array pointed to by theEXRImage.tiles()field.
-
next_level
@Nullable public EXRImage next_level()
- Returns:
- a
EXRImageview of the struct pointed to by theEXRImage.next_level()field.
-
level_x
public int level_x()
- Returns:
- the value of the
EXRImage.level_x()field.
-
level_y
public int level_y()
- Returns:
- the value of the
EXRImage.level_y()field.
-
images
@Nullable public org.lwjgl.PointerBuffer images()
- Returns:
- a
PointerBufferview of the data pointed to by theEXRImage.images()field.
-
width
public int width()
- Returns:
- the value of the
widthfield.
-
height
public int height()
- Returns:
- the value of the
heightfield.
-
num_channels
public int num_channels()
- Returns:
- the value of the
num_channelsfield.
-
num_tiles
public int num_tiles()
- Returns:
- the value of the
num_tilesfield.
-
tiles
public EXRImage.Buffer tiles(@Nullable EXRTile.Buffer value)
Sets the address of the specifiedEXRTile.Bufferto theEXRImage.tiles()field.
-
next_level
public EXRImage.Buffer next_level(@Nullable EXRImage value)
Sets the address of the specifiedEXRImageto theEXRImage.next_level()field.
-
level_x
public EXRImage.Buffer level_x(int value)
Sets the specified value to theEXRImage.level_x()field.
-
level_y
public EXRImage.Buffer level_y(int value)
Sets the specified value to theEXRImage.level_y()field.
-
images
public EXRImage.Buffer images(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theEXRImage.images()field.
-
width
public EXRImage.Buffer width(int value)
Sets the specified value to thewidthfield.
-
height
public EXRImage.Buffer height(int value)
Sets the specified value to theheightfield.
-
num_channels
public EXRImage.Buffer num_channels(int value)
Sets the specified value to thenum_channelsfield.
-
-