Package org.lwjgl.util.tinyexr
Class DeepImage.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<DeepImage,DeepImage.Buffer>
-
- org.lwjgl.util.tinyexr.DeepImage.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<DeepImage>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- DeepImage
public static class DeepImage.Buffer extends org.lwjgl.system.StructBuffer<DeepImage,DeepImage.Buffer> implements org.lwjgl.system.NativeResource
An array ofDeepImage
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.lwjgl.PointerBuffer
channel_names()
Returns aPointerBuffer
view of the data pointed to by thechannel_names
field.DeepImage.Buffer
channel_names(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to thechannel_names
field.int
height()
Returns the value of theheight
field.DeepImage.Buffer
height(int value)
Sets the specified value to theheight
field.org.lwjgl.PointerBuffer
image()
Returns aPointerBuffer
view of the data pointed to by theimage
field.DeepImage.Buffer
image(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theimage
field.int
num_channels()
Returns the value of thenum_channels
field.DeepImage.Buffer
num_channels(int value)
Sets the specified value to thenum_channels
field.org.lwjgl.PointerBuffer
offset_table(int capacity)
Returns aPointerBuffer
view of the data pointed to by theoffset_table
field.DeepImage.Buffer
offset_table(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theoffset_table
field.int
width()
Returns the value of thewidth
field.DeepImage.Buffer
width(int value)
Sets the specified value to thewidth
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newDeepImage.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 byDeepImage.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
-
channel_names
public org.lwjgl.PointerBuffer channel_names()
Returns aPointerBuffer
view of the data pointed to by thechannel_names
field.
-
image
public org.lwjgl.PointerBuffer image()
Returns aPointerBuffer
view of the data pointed to by theimage
field.
-
offset_table
public org.lwjgl.PointerBuffer offset_table(int capacity)
Returns aPointerBuffer
view of the data pointed to by theoffset_table
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
num_channels
public int num_channels()
Returns the value of thenum_channels
field.
-
width
public int width()
Returns the value of thewidth
field.
-
height
public int height()
Returns the value of theheight
field.
-
channel_names
public DeepImage.Buffer channel_names(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to thechannel_names
field.
-
image
public DeepImage.Buffer image(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theimage
field.
-
offset_table
public DeepImage.Buffer offset_table(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theoffset_table
field.
-
num_channels
public DeepImage.Buffer num_channels(int value)
Sets the specified value to thenum_channels
field.
-
width
public DeepImage.Buffer width(int value)
Sets the specified value to thewidth
field.
-
height
public DeepImage.Buffer height(int value)
Sets the specified value to theheight
field.
-
-