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 ofEXRImage
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
height()
Returns the value of theheight
field.EXRImage.Buffer
height(int value)
Sets the specified value to theheight
field.org.lwjgl.PointerBuffer
images()
Returns aPointerBuffer
view of the data pointed to by theimages
field.EXRImage.Buffer
images(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theimages
field.int
num_channels()
Returns the value of thenum_channels
field.EXRImage.Buffer
num_channels(int value)
Sets the specified value to thenum_channels
field.int
num_tiles()
Returns the value of thenum_tiles
field.EXRTile.Buffer
tiles()
Returns aEXRTile.Buffer
view of the struct array pointed to by thetiles
field.EXRImage.Buffer
tiles(EXRTile.Buffer value)
Sets the address of the specifiedEXRTile.Buffer
to thetiles
field.int
width()
Returns the value of thewidth
field.EXRImage.Buffer
width(int value)
Sets the specified value to thewidth
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newEXRImage.Buffer
instance 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 aEXRTile.Buffer
view of the struct array pointed to by thetiles
field.
-
images
@Nullable public org.lwjgl.PointerBuffer images()
Returns aPointerBuffer
view of the data pointed to by theimages
field.
-
width
public int width()
Returns the value of thewidth
field.
-
height
public int height()
Returns the value of theheight
field.
-
num_channels
public int num_channels()
Returns the value of thenum_channels
field.
-
num_tiles
public int num_tiles()
Returns the value of thenum_tiles
field.
-
tiles
public EXRImage.Buffer tiles(@Nullable EXRTile.Buffer value)
Sets the address of the specifiedEXRTile.Buffer
to thetiles
field.
-
images
public EXRImage.Buffer images(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theimages
field.
-
width
public EXRImage.Buffer width(int value)
Sets the specified value to thewidth
field.
-
height
public EXRImage.Buffer height(int value)
Sets the specified value to theheight
field.
-
num_channels
public EXRImage.Buffer num_channels(int value)
Sets the specified value to thenum_channels
field.
-
-