Package org.lwjgl.util.par
Class ParSLSpineList.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<ParSLSpineList,ParSLSpineList.Buffer>
-
- org.lwjgl.util.par.ParSLSpineList.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<ParSLSpineList>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- ParSLSpineList
public static class ParSLSpineList.Buffer extends org.lwjgl.system.StructBuffer<ParSLSpineList,ParSLSpineList.Buffer> implements org.lwjgl.system.NativeResource
An array ofParSLSpineListstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclosed()ParSLSpineList.Bufferclosed(boolean value)Sets the specified value to theclosedfield.shortnum_spines()intnum_vertices()java.nio.ShortBufferspine_lengths()ParSLSpineList.Bufferspine_lengths(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto thespine_lengthsfield.ParSLPosition.Buffervertices()ParSLSpineList.Buffervertices(ParSLPosition.Buffer value)Sets the address of the specifiedParSLPosition.Bufferto theverticesfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newParSLSpineList.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 byParSLSpineList.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
-
num_vertices
public int num_vertices()
- Returns:
- the value of the
num_verticesfield.
-
num_spines
public short num_spines()
- Returns:
- the value of the
num_spinesfield.
-
vertices
public ParSLPosition.Buffer vertices()
- Returns:
- a
ParSLPosition.Bufferview of the struct array pointed to by theverticesfield.
-
spine_lengths
public java.nio.ShortBuffer spine_lengths()
- Returns:
- a
ShortBufferview of the data pointed to by thespine_lengthsfield.
-
closed
public boolean closed()
- Returns:
- the value of the
closedfield.
-
vertices
public ParSLSpineList.Buffer vertices(ParSLPosition.Buffer value)
Sets the address of the specifiedParSLPosition.Bufferto theverticesfield.
-
spine_lengths
public ParSLSpineList.Buffer spine_lengths(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto thespine_lengthsfield.
-
closed
public ParSLSpineList.Buffer closed(boolean value)
Sets the specified value to theclosedfield.
-
-