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 ofParSLSpineList
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
closed()
Returns the value of theclosed
field.ParSLSpineList.Buffer
closed(boolean value)
Sets the specified value to theclosed
field.short
num_spines()
Returns the value of thenum_spines
field.int
num_vertices()
Returns the value of thenum_vertices
field.java.nio.ShortBuffer
spine_lengths()
Returns aShortBuffer
view of the data pointed to by thespine_lengths
field.ParSLSpineList.Buffer
spine_lengths(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBuffer
to thespine_lengths
field.ParSLPosition.Buffer
vertices()
Returns aParSLPosition.Buffer
view of the struct array pointed to by thevertices
field.ParSLSpineList.Buffer
vertices(ParSLPosition.Buffer value)
Sets the address of the specifiedParSLPosition.Buffer
to thevertices
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newParSLSpineList.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 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 thenum_vertices
field.
-
num_spines
public short num_spines()
Returns the value of thenum_spines
field.
-
vertices
public ParSLPosition.Buffer vertices()
Returns aParSLPosition.Buffer
view of the struct array pointed to by thevertices
field.
-
spine_lengths
public java.nio.ShortBuffer spine_lengths()
Returns aShortBuffer
view of the data pointed to by thespine_lengths
field.
-
closed
public boolean closed()
Returns the value of theclosed
field.
-
vertices
public ParSLSpineList.Buffer vertices(ParSLPosition.Buffer value)
Sets the address of the specifiedParSLPosition.Buffer
to thevertices
field.
-
spine_lengths
public ParSLSpineList.Buffer spine_lengths(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBuffer
to thespine_lengths
field.
-
closed
public ParSLSpineList.Buffer closed(boolean value)
Sets the specified value to theclosed
field.
-
-