Package org.lwjgl.util.par
Class ParSLSpineList
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct parsl_spine_list {
uint32_t num_vertices;
uint16_t num_spines;
{@link ParSLPosition parsl_position} * vertices;
uint16_t * spine_lengths;
bool closed;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionParSLSpineList
(ByteBuffer container) Creates aParSLSpineList
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParSLSpineList
calloc()
Returns a newParSLSpineList
instance allocated withmemCalloc
.static ParSLSpineList.Buffer
calloc
(int capacity) Returns a newParSLSpineList.Buffer
instance allocated withmemCalloc
.static ParSLSpineList.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newParSLSpineList.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ParSLSpineList
calloc
(MemoryStack stack) Returns a newParSLSpineList
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ParSLSpineList
Deprecated.static ParSLSpineList.Buffer
callocStack
(int capacity) Deprecated.static ParSLSpineList.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static ParSLSpineList
callocStack
(MemoryStack stack) Deprecated.boolean
closed()
closed
(boolean value) Sets the specified value to theclosed
field.static ParSLSpineList
create()
Returns a newParSLSpineList
instance allocated withBufferUtils
.static ParSLSpineList.Buffer
create
(int capacity) Returns a newParSLSpineList.Buffer
instance allocated withBufferUtils
.static ParSLSpineList
create
(long address) Returns a newParSLSpineList
instance for the specified memory address.static ParSLSpineList.Buffer
create
(long address, int capacity) Create aParSLSpineList.Buffer
instance at the specified memory.static @Nullable ParSLSpineList
createSafe
(long address) static @Nullable ParSLSpineList.Buffer
createSafe
(long address, int capacity) static ParSLSpineList
malloc()
Returns a newParSLSpineList
instance allocated withmemAlloc
.static ParSLSpineList.Buffer
malloc
(int capacity) Returns a newParSLSpineList.Buffer
instance allocated withmemAlloc
.static ParSLSpineList.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newParSLSpineList.Buffer
instance allocated on the specifiedMemoryStack
.static ParSLSpineList
malloc
(MemoryStack stack) Returns a newParSLSpineList
instance allocated on the specifiedMemoryStack
.static ParSLSpineList
Deprecated.static ParSLSpineList.Buffer
mallocStack
(int capacity) Deprecated.static ParSLSpineList.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static ParSLSpineList
mallocStack
(MemoryStack stack) Deprecated.static boolean
nclosed
(long struct) Unsafe version ofclosed()
.static void
nclosed
(long struct, boolean value) Unsafe version ofclosed
.static short
nnum_spines
(long struct) Unsafe version ofnum_spines()
.static void
nnum_spines
(long struct, short value) Sets the specified value to thenum_spines
field of the specifiedstruct
.static int
nnum_vertices
(long struct) Unsafe version ofnum_vertices()
.static void
nnum_vertices
(long struct, int value) Sets the specified value to thenum_vertices
field of the specifiedstruct
.static ShortBuffer
nspine_lengths
(long struct) Unsafe version ofspine_lengths
.static void
nspine_lengths
(long struct, ShortBuffer value) Unsafe version ofspine_lengths
.short
int
static ParSLPosition.Buffer
nvertices
(long struct) Unsafe version ofvertices()
.static void
nvertices
(long struct, ParSLPosition.Buffer value) Unsafe version ofvertices
.set
(ParSLPosition.Buffer vertices, ShortBuffer spine_lengths, boolean closed) Initializes this struct with the specified values.set
(ParSLSpineList src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.spine_lengths
(ShortBuffer value) Sets the address of the specifiedShortBuffer
to thespine_lengths
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.vertices()
vertices
(ParSLPosition.Buffer value) Sets the address of the specifiedParSLPosition.Buffer
to thevertices
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NUM_VERTICES
public static final int NUM_VERTICESThe struct member offsets. -
NUM_SPINES
public static final int NUM_SPINESThe struct member offsets. -
VERTICES
public static final int VERTICESThe struct member offsets. -
SPINE_LENGTHS
public static final int SPINE_LENGTHSThe struct member offsets. -
CLOSED
public static final int CLOSEDThe struct member offsets.
-
-
Constructor Details
-
ParSLSpineList
Creates aParSLSpineList
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ParSLSpineList>
-
num_vertices
public int num_vertices()- Returns:
- the value of the
num_vertices
field.
-
num_spines
public short num_spines()- Returns:
- the value of the
num_spines
field.
-
vertices
- Returns:
- a
ParSLPosition.Buffer
view of the struct array pointed to by thevertices
field.
-
spine_lengths
- Returns:
- a
ShortBuffer
view of the data pointed to by thespine_lengths
field.
-
closed
public boolean closed()- Returns:
- the value of the
closed
field.
-
vertices
Sets the address of the specifiedParSLPosition.Buffer
to thevertices
field. -
spine_lengths
Sets the address of the specifiedShortBuffer
to thespine_lengths
field. -
closed
Sets the specified value to theclosed
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newParSLSpineList
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newParSLSpineList
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newParSLSpineList
instance allocated withBufferUtils
. -
create
Returns a newParSLSpineList
instance for the specified memory address. -
createSafe
-
malloc
Returns a newParSLSpineList.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newParSLSpineList.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newParSLSpineList.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aParSLSpineList.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newParSLSpineList
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newParSLSpineList
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newParSLSpineList.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newParSLSpineList.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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
Unsafe version ofvertices()
. -
nspine_lengths
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_vertices
field of the specifiedstruct
. -
nnum_spines
public static void nnum_spines(long struct, short value) Sets the specified value to thenum_spines
field of the specifiedstruct
. -
nvertices
Unsafe version ofvertices
. -
nspine_lengths
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
-