Package org.lwjgl.util.par
Class ParSLSpineList
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.par.ParSLSpineList
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ParSLSpineList extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceClient-owned list of line strips that will be tessellated.Layout
struct parsl_spine_list { uint32_t num_vertices; uint16_t num_spines;parsl_position* vertices; uint16_t * spine_lengths; bool closed; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParSLSpineList.BufferAn array ofParSLSpineListstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCLOSED
NUM_SPINES
NUM_VERTICESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPINE_LENGTHS
VERTICESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description ParSLSpineList(java.nio.ByteBuffer container)Creates aParSLSpineListinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ParSLSpineListcalloc()Returns a newParSLSpineListinstance allocated withmemCalloc.static ParSLSpineList.Buffercalloc(int capacity)Returns a newParSLSpineList.Bufferinstance allocated withmemCalloc.static ParSLSpineList.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newParSLSpineList.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLSpineListcalloc(org.lwjgl.system.MemoryStack stack)Returns a newParSLSpineListinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLSpineListcallocStack()Deprecated.static ParSLSpineList.BuffercallocStack(int capacity)Deprecated.static ParSLSpineList.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ParSLSpineListcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.booleanclosed()ParSLSpineListclosed(boolean value)Sets the specified value to theclosedfield.static ParSLSpineListcreate()Returns a newParSLSpineListinstance allocated withBufferUtils.static ParSLSpineList.Buffercreate(int capacity)Returns a newParSLSpineList.Bufferinstance allocated withBufferUtils.static ParSLSpineListcreate(long address)Returns a newParSLSpineListinstance for the specified memory address.static ParSLSpineList.Buffercreate(long address, int capacity)Create aParSLSpineList.Bufferinstance at the specified memory.static ParSLSpineListcreateSafe(long address)static ParSLSpineList.BuffercreateSafe(long address, int capacity)static ParSLSpineListmalloc()Returns a newParSLSpineListinstance allocated withmemAlloc.static ParSLSpineList.Buffermalloc(int capacity)Returns a newParSLSpineList.Bufferinstance allocated withmemAlloc.static ParSLSpineList.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newParSLSpineList.Bufferinstance allocated on the specifiedMemoryStack.static ParSLSpineListmalloc(org.lwjgl.system.MemoryStack stack)Returns a newParSLSpineListinstance allocated on the specifiedMemoryStack.static ParSLSpineListmallocStack()Deprecated.static ParSLSpineList.BuffermallocStack(int capacity)Deprecated.static ParSLSpineList.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ParSLSpineListmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static booleannclosed(long struct)Unsafe version ofclosed().static voidnclosed(long struct, boolean value)Unsafe version ofclosed.static shortnnum_spines(long struct)Unsafe version ofnum_spines().static voidnnum_spines(long struct, short value)Sets the specified value to thenum_spinesfield of the specifiedstruct.static intnnum_vertices(long struct)Unsafe version ofnum_vertices().static voidnnum_vertices(long struct, int value)Sets the specified value to thenum_verticesfield of the specifiedstruct.static java.nio.ShortBuffernspine_lengths(long struct)Unsafe version ofspine_lengths.static voidnspine_lengths(long struct, java.nio.ShortBuffer value)Unsafe version ofspine_lengths.shortnum_spines()intnum_vertices()static ParSLPosition.Buffernvertices(long struct)Unsafe version ofvertices().static voidnvertices(long struct, ParSLPosition.Buffer value)Unsafe version ofvertices.ParSLSpineListset(ParSLPosition.Buffer vertices, java.nio.ShortBuffer spine_lengths, boolean closed)Initializes this struct with the specified values.ParSLSpineListset(ParSLSpineList src)Copies the specified struct data to this struct.intsizeof()java.nio.ShortBufferspine_lengths()ParSLSpineListspine_lengths(java.nio.ShortBuffer value)Sets the address of the specifiedShortBufferto thespine_lengthsfield.static voidvalidate(long struct)Validates pointer members that should not beNULL.ParSLPosition.Buffervertices()ParSLSpineListvertices(ParSLPosition.Buffer value)Sets the address of the specifiedParSLPosition.Bufferto theverticesfield.
-
-
-
Constructor Detail
-
ParSLSpineList
public ParSLSpineList(java.nio.ByteBuffer container)
Creates aParSLSpineListinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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 vertices(ParSLPosition.Buffer value)
Sets the address of the specifiedParSLPosition.Bufferto theverticesfield.
-
spine_lengths
public ParSLSpineList spine_lengths(java.nio.ShortBuffer value)
Sets the address of the specifiedShortBufferto thespine_lengthsfield.
-
closed
public ParSLSpineList closed(boolean value)
Sets the specified value to theclosedfield.
-
set
public ParSLSpineList set(ParSLPosition.Buffer vertices, java.nio.ShortBuffer spine_lengths, boolean closed)
Initializes this struct with the specified values.
-
set
public ParSLSpineList set(ParSLSpineList src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static ParSLSpineList malloc()
Returns a newParSLSpineListinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ParSLSpineList calloc()
Returns a newParSLSpineListinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ParSLSpineList create()
Returns a newParSLSpineListinstance allocated withBufferUtils.
-
create
public static ParSLSpineList create(long address)
Returns a newParSLSpineListinstance for the specified memory address.
-
createSafe
@Nullable public static ParSLSpineList createSafe(long address)
-
malloc
public static ParSLSpineList.Buffer malloc(int capacity)
Returns a newParSLSpineList.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ParSLSpineList.Buffer calloc(int capacity)
Returns a newParSLSpineList.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ParSLSpineList.Buffer create(int capacity)
Returns a newParSLSpineList.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ParSLSpineList.Buffer create(long address, int capacity)
Create aParSLSpineList.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ParSLSpineList.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ParSLSpineList mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLSpineList callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLSpineList mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLSpineList callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLSpineList.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLSpineList.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLSpineList.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLSpineList.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static ParSLSpineList malloc(org.lwjgl.system.MemoryStack stack)
Returns a newParSLSpineListinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ParSLSpineList calloc(org.lwjgl.system.MemoryStack stack)
Returns a newParSLSpineListinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ParSLSpineList.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newParSLSpineList.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ParSLSpineList.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newParSLSpineList.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nnum_vertices
public static int nnum_vertices(long struct)
Unsafe version ofnum_vertices().
-
nnum_spines
public static short nnum_spines(long struct)
Unsafe version ofnum_spines().
-
nvertices
public static ParSLPosition.Buffer nvertices(long struct)
Unsafe version ofvertices().
-
nspine_lengths
public static java.nio.ShortBuffer nspine_lengths(long struct)
Unsafe version ofspine_lengths.
-
nclosed
public static boolean nclosed(long struct)
Unsafe version ofclosed().
-
nnum_vertices
public static void nnum_vertices(long struct, int value)Sets the specified value to thenum_verticesfield of the specifiedstruct.
-
nnum_spines
public static void nnum_spines(long struct, short value)Sets the specified value to thenum_spinesfield of the specifiedstruct.
-
nvertices
public static void nvertices(long struct, ParSLPosition.Buffer value)Unsafe version ofvertices.
-
nspine_lengths
public static void nspine_lengths(long struct, java.nio.ShortBuffer value)Unsafe version ofspine_lengths.
-
nclosed
public static void nclosed(long struct, boolean value)Unsafe version ofclosed.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-