Top Description Inners Fields Constructors Methods
org.lwjgl.util.par

public Class ParSLSpineList

extends Struct<ParSLSpineList>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct parsl_spine_list
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Client-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 and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CLOSED

The struct member offsets.

public static final int
NUM_SPINES

The struct member offsets.

public static final int
NUM_VERTICES

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SPINE_LENGTHS

The struct member offsets.

public static final int
VERTICES

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
ParSLSpineList(long address, ByteBuffer container)

public
ParSLSpineList(ByteBuffer container)

Creates a ParSLSpineList instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static ParSLSpineList
calloc()

Returns a new ParSLSpineList instance allocated with memCalloc.

public static ParSLSpineList.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new ParSLSpineList.Buffer instance allocated with memCalloc.

public static ParSLSpineList
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ParSLSpineList instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ParSLSpineList.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ParSLSpineList.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ParSLSpineList
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLSpineList
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLSpineList.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLSpineList.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public boolean

Returns:

the value of the closed field.
closed
()

public ParSLSpineList
closed(boolean value)

Sets the specified value to the closed field.

protected ParSLSpineList
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static ParSLSpineList
create()

Returns a new ParSLSpineList instance allocated with BufferUtils.

public static ParSLSpineList
create(long address)

Returns a new ParSLSpineList instance for the specified memory address.

public static ParSLSpineList.Buffer
create(int
the buffer capacity
capacity
)

Returns a new ParSLSpineList.Buffer instance allocated with BufferUtils.

public static ParSLSpineList.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a ParSLSpineList.Buffer instance at the specified memory.

public static ParSLSpineList
createSafe(long address)

Like create, but returns null if address is NULL.

public static ParSLSpineList.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static ParSLSpineList
malloc()

Returns a new ParSLSpineList instance allocated with memAlloc.

public static ParSLSpineList.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new ParSLSpineList.Buffer instance allocated with memAlloc.

public static ParSLSpineList
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ParSLSpineList instance allocated on the specified MemoryStack.

public static ParSLSpineList.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ParSLSpineList.Buffer instance allocated on the specified MemoryStack.

public static ParSLSpineList
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLSpineList
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLSpineList.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLSpineList.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static boolean
nclosed(long struct)

Unsafe version of closed.

public static void
nclosed(long struct, boolean value)

Unsafe version of closed.

public static short
nnum_spines(long struct)

Unsafe version of num_spines.

public static void
nnum_spines(long struct, short value)

Sets the specified value to the num_spines field of the specified struct.

public static int
nnum_vertices(long struct)

Unsafe version of num_vertices.

public static void
nnum_vertices(long struct, int value)

Sets the specified value to the num_vertices field of the specified struct.

public static ShortBuffer
nspine_lengths(long struct)

Unsafe version of spine_lengths.

public static void
nspine_lengths(long struct, ShortBuffer value)

Unsafe version of spine_lengths.

public short

Returns:

the value of the num_spines field.
num_spines
()

public int

Returns:

the value of the num_vertices field.
num_vertices
()

public static ParSLPosition.Buffer
nvertices(long struct)

Unsafe version of vertices.

public static void
nvertices(long struct, ParSLPosition.Buffer value)

Unsafe version of vertices.

public ParSLSpineList
set(ParSLPosition.Buffer vertices, ShortBuffer spine_lengths, boolean closed)

Initializes this struct with the specified values.

public ParSLSpineList

Returns:

this struct
set
(ParSLSpineList
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public ShortBuffer

Returns:

a ShortBuffer view of the data pointed to by the spine_lengths field.
spine_lengths
()

public ParSLSpineList
spine_lengths(ShortBuffer value)

Sets the address of the specified ShortBuffer to the spine_lengths field.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public ParSLPosition.Buffer

Returns:

a ParSLPosition.Buffer view of the struct array pointed to by the vertices field.
vertices
()

public ParSLSpineList
vertices(ParSLPosition.Buffer value)

Sets the address of the specified ParSLPosition.Buffer to the vertices field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CLOSEDback to summary
public static final int CLOSED

The struct member offsets.

NUM_SPINESback to summary
public static final int NUM_SPINES

The struct member offsets.

NUM_VERTICESback to summary
public static final int NUM_VERTICES

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SPINE_LENGTHSback to summary
public static final int SPINE_LENGTHS

The struct member offsets.

VERTICESback to summary
public static final int VERTICES

The struct member offsets.

Constructor Detail

ParSLSpineListback to summary
protected ParSLSpineList(long address, ByteBuffer container)
ParSLSpineListback to summary
public ParSLSpineList(ByteBuffer container)

Creates a ParSLSpineList instance at the current position of the specified ByteBuffer container. 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

callocback to summary
public static ParSLSpineList calloc()

Returns a new ParSLSpineList instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static ParSLSpineList.Buffer calloc(int capacity)

Returns a new ParSLSpineList.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static ParSLSpineList calloc(MemoryStack stack)

Returns a new ParSLSpineList instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static ParSLSpineList.Buffer calloc(int capacity, MemoryStack stack)

Returns a new ParSLSpineList.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static ParSLSpineList callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ParSLSpineList callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ParSLSpineList.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ParSLSpineList.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
closedback to summary
public boolean closed()
Returns:boolean

the value of the closed field.

Annotations
@NativeType:bool
closedback to summary
public ParSLSpineList closed(boolean value)

Sets the specified value to the closed field.

createback to summary
protected ParSLSpineList create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static ParSLSpineList create()

Returns a new ParSLSpineList instance allocated with BufferUtils.

createback to summary
public static ParSLSpineList create(long address)

Returns a new ParSLSpineList instance for the specified memory address.

createback to summary
public static ParSLSpineList.Buffer create(int capacity)

Returns a new ParSLSpineList.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static ParSLSpineList.Buffer create(long address, int capacity)

Create a ParSLSpineList.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static ParSLSpineList createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static ParSLSpineList.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
mallocback to summary
public static ParSLSpineList malloc()

Returns a new ParSLSpineList instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static ParSLSpineList.Buffer malloc(int capacity)

Returns a new ParSLSpineList.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static ParSLSpineList malloc(MemoryStack stack)

Returns a new ParSLSpineList instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static ParSLSpineList.Buffer malloc(int capacity, MemoryStack stack)

Returns a new ParSLSpineList.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static ParSLSpineList mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ParSLSpineList mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ParSLSpineList.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ParSLSpineList.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
nclosedback to summary
public static boolean nclosed(long struct)

Unsafe version of closed.

nclosedback to summary
public static void nclosed(long struct, boolean value)

Unsafe version of closed.

nnum_spinesback to summary
public static short nnum_spines(long struct)

Unsafe version of num_spines.

nnum_spinesback to summary
public static void nnum_spines(long struct, short value)

Sets the specified value to the num_spines field of the specified struct.

nnum_verticesback to summary
public static int nnum_vertices(long struct)

Unsafe version of num_vertices.

nnum_verticesback to summary
public static void nnum_vertices(long struct, int value)

Sets the specified value to the num_vertices field of the specified struct.

nspine_lengthsback to summary
public static ShortBuffer nspine_lengths(long struct)

Unsafe version of spine_lengths.

nspine_lengthsback to summary
public static void nspine_lengths(long struct, ShortBuffer value)

Unsafe version of spine_lengths.

num_spinesback to summary
public short num_spines()
Returns:short

the value of the num_spines field.

Annotations
@NativeType:uint16_t
num_verticesback to summary
public int num_vertices()
Returns:int

the value of the num_vertices field.

Annotations
@NativeType:uint32_t
nverticesback to summary
public static ParSLPosition.Buffer nvertices(long struct)

Unsafe version of vertices.

nverticesback to summary
public static void nvertices(long struct, ParSLPosition.Buffer value)

Unsafe version of vertices.

setback to summary
public ParSLSpineList set(ParSLPosition.Buffer vertices, ShortBuffer spine_lengths, boolean closed)

Initializes this struct with the specified values.

setback to summary
public ParSLSpineList set(ParSLSpineList src)

Copies the specified struct data to this struct.

Parameters
src:ParSLSpineList

the source struct

Returns:ParSLSpineList

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
spine_lengthsback to summary
public ShortBuffer spine_lengths()
Returns:ShortBuffer

a ShortBuffer view of the data pointed to by the spine_lengths field.

Annotations
@NativeType:uint16_t *
spine_lengthsback to summary
public ParSLSpineList spine_lengths(ShortBuffer value)

Sets the address of the specified ShortBuffer to the spine_lengths field.

validateback to summary
public static void validate(long struct)

Validates pointer members that should not be NULL.

Parameters
struct:long

the struct to validate

verticesback to summary
public ParSLPosition.Buffer vertices()
Returns:ParSLPosition.Buffer

a ParSLPosition.Buffer view of the struct array pointed to by the vertices field.

Annotations
@NativeType:parsl_position *
verticesback to summary
public ParSLSpineList vertices(ParSLPosition.Buffer value)

Sets the address of the specified ParSLPosition.Buffer to the vertices field.

org.lwjgl.util.par back to summary

public Class ParSLSpineList.Buffer

extends StructBuffer<ParSLSpineList, ParSLSpineList.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of ParSLSpineList structs.

Field Summary

Modifier and TypeField and Description
private static final ParSLSpineList

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new ParSLSpineList.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value of the closed field.
closed
()

public ParSLSpineList.Buffer
closed(boolean value)

Sets the specified value to the closed field.

protected ParSLSpineList
public short

Returns:

the value of the num_spines field.
num_spines
()

public int

Returns:

the value of the num_vertices field.
num_vertices
()

protected ParSLSpineList.Buffer
public ShortBuffer

Returns:

a ShortBuffer view of the data pointed to by the spine_lengths field.
spine_lengths
()

public ParSLSpineList.Buffer
spine_lengths(ShortBuffer value)

Sets the address of the specified ShortBuffer to the spine_lengths field.

public ParSLPosition.Buffer

Returns:

a ParSLPosition.Buffer view of the struct array pointed to by the vertices field.
vertices
()

public ParSLSpineList.Buffer
vertices(ParSLPosition.Buffer value)

Sets the address of the specified ParSLPosition.Buffer to the vertices field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final ParSLSpineList ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new ParSLSpineList.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 by ParSLSpineList#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

closedback to summary
public boolean closed()
Returns:boolean

the value of the closed field.

Annotations
@NativeType:bool
closedback to summary
public ParSLSpineList.Buffer closed(boolean value)

Sets the specified value to the closed field.

getElementFactoryback to summary
protected ParSLSpineList getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
num_spinesback to summary
public short num_spines()
Returns:short

the value of the num_spines field.

Annotations
@NativeType:uint16_t
num_verticesback to summary
public int num_vertices()
Returns:int

the value of the num_vertices field.

Annotations
@NativeType:uint32_t
selfback to summary
protected ParSLSpineList.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
spine_lengthsback to summary
public ShortBuffer spine_lengths()
Returns:ShortBuffer

a ShortBuffer view of the data pointed to by the spine_lengths field.

Annotations
@NativeType:uint16_t *
spine_lengthsback to summary
public ParSLSpineList.Buffer spine_lengths(ShortBuffer value)

Sets the address of the specified ShortBuffer to the spine_lengths field.

verticesback to summary
public ParSLPosition.Buffer vertices()
Returns:ParSLPosition.Buffer

a ParSLPosition.Buffer view of the struct array pointed to by the vertices field.

Annotations
@NativeType:parsl_position *
verticesback to summary
public ParSLSpineList.Buffer vertices(ParSLPosition.Buffer value)

Sets the address of the specified ParSLPosition.Buffer to the vertices field.