Package org.lwjgl.util.tinyexr
Class EXRChannelInfo.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<EXRChannelInfo,EXRChannelInfo.Buffer>
-
- org.lwjgl.util.tinyexr.EXRChannelInfo.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<EXRChannelInfo>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- EXRChannelInfo
public static class EXRChannelInfo.Buffer extends org.lwjgl.system.StructBuffer<EXRChannelInfo,EXRChannelInfo.Buffer> implements org.lwjgl.system.NativeResource
An array ofEXRChannelInfostructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffername()EXRChannelInfo.Buffername(java.nio.ByteBuffer value)Copies the specified encoded string to thenamefield.java.lang.StringnameString()bytep_linear()EXRChannelInfo.Bufferp_linear(byte value)Sets the specified value to thep_linearfield.intpixel_type()EXRChannelInfo.Bufferpixel_type(int value)Sets the specified value to thepixel_typefield.intx_sampling()EXRChannelInfo.Bufferx_sampling(int value)Sets the specified value to thex_samplingfield.inty_sampling()EXRChannelInfo.Buffery_sampling(int value)Sets the specified value to they_samplingfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newEXRChannelInfo.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 byEXRChannelInfo.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
-
name
public java.nio.ByteBuffer name()
- Returns:
- a
ByteBufferview of thenamefield.
-
nameString
public java.lang.String nameString()
- Returns:
- the null-terminated string stored in the
namefield.
-
pixel_type
public int pixel_type()
- Returns:
- the value of the
pixel_typefield.
-
x_sampling
public int x_sampling()
- Returns:
- the value of the
x_samplingfield.
-
y_sampling
public int y_sampling()
- Returns:
- the value of the
y_samplingfield.
-
p_linear
public byte p_linear()
- Returns:
- the value of the
p_linearfield.
-
name
public EXRChannelInfo.Buffer name(java.nio.ByteBuffer value)
Copies the specified encoded string to thenamefield.
-
pixel_type
public EXRChannelInfo.Buffer pixel_type(int value)
Sets the specified value to thepixel_typefield.
-
x_sampling
public EXRChannelInfo.Buffer x_sampling(int value)
Sets the specified value to thex_samplingfield.
-
y_sampling
public EXRChannelInfo.Buffer y_sampling(int value)
Sets the specified value to they_samplingfield.
-
p_linear
public EXRChannelInfo.Buffer p_linear(byte value)
Sets the specified value to thep_linearfield.
-
-