public class ParSLSpineList
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct parsl_spine_list {
uint32_t num_vertices;
uint16_t num_spines;
parsl_position * vertices;
uint16_t * spine_lengths;
bool closed;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ParSLSpineList.Buffer
An array of
ParSLSpineList structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLOSED
The struct member offsets.
|
static int |
NUM_SPINES
The struct member offsets.
|
static int |
NUM_VERTICES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPINE_LENGTHS
The struct member offsets.
|
static int |
VERTICES
The struct member offsets.
|
| Constructor and Description |
|---|
ParSLSpineList(java.nio.ByteBuffer container)
Creates a
ParSLSpineList instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ParSLSpineList |
calloc()
Returns a new
ParSLSpineList instance allocated with memCalloc. |
static ParSLSpineList.Buffer |
calloc(int capacity)
Returns a new
ParSLSpineList.Buffer instance allocated with memCalloc. |
static ParSLSpineList |
callocStack()
Returns a new
ParSLSpineList instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ParSLSpineList.Buffer |
callocStack(int capacity)
Returns a new
ParSLSpineList.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ParSLSpineList.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLSpineList.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ParSLSpineList |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLSpineList instance allocated on the specified MemoryStack and initializes all its bits to zero. |
boolean |
closed()
Returns the value of the
closed field. |
ParSLSpineList |
closed(boolean value)
Sets the specified value to the
closed field. |
static ParSLSpineList |
create()
Returns a new
ParSLSpineList instance allocated with BufferUtils. |
static ParSLSpineList.Buffer |
create(int capacity)
Returns a new
ParSLSpineList.Buffer instance allocated with BufferUtils. |
static ParSLSpineList |
create(long address)
Returns a new
ParSLSpineList instance for the specified memory address. |
static ParSLSpineList.Buffer |
create(long address,
int capacity)
Create a
ParSLSpineList.Buffer instance at the specified memory. |
static ParSLSpineList |
createSafe(long address)
|
static ParSLSpineList.Buffer |
createSafe(long address,
int capacity)
|
static ParSLSpineList |
malloc()
Returns a new
ParSLSpineList instance allocated with memAlloc. |
static ParSLSpineList.Buffer |
malloc(int capacity)
Returns a new
ParSLSpineList.Buffer instance allocated with memAlloc. |
static ParSLSpineList |
mallocStack()
Returns a new
ParSLSpineList instance allocated on the thread-local MemoryStack. |
static ParSLSpineList.Buffer |
mallocStack(int capacity)
Returns a new
ParSLSpineList.Buffer instance allocated on the thread-local MemoryStack. |
static ParSLSpineList.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLSpineList.Buffer instance allocated on the specified MemoryStack. |
static ParSLSpineList |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLSpineList instance allocated on the specified MemoryStack. |
static boolean |
nclosed(long struct)
Unsafe version of
closed(). |
static void |
nclosed(long struct,
boolean value)
Unsafe version of
closed. |
static short |
nnum_spines(long struct)
Unsafe version of
num_spines(). |
static void |
nnum_spines(long struct,
short value)
Sets the specified value to the
num_spines field of the specified struct. |
static int |
nnum_vertices(long struct)
Unsafe version of
num_vertices(). |
static void |
nnum_vertices(long struct,
int value)
Sets the specified value to the
num_vertices field of the specified struct. |
static java.nio.ShortBuffer |
nspine_lengths(long struct)
Unsafe version of
spine_lengths. |
static void |
nspine_lengths(long struct,
java.nio.ShortBuffer value)
Unsafe version of
spine_lengths. |
short |
num_spines()
Returns the value of the
num_spines field. |
int |
num_vertices()
Returns the value of the
num_vertices field. |
static ParSLPosition.Buffer |
nvertices(long struct)
Unsafe version of
vertices(). |
static void |
nvertices(long struct,
ParSLPosition.Buffer value)
Unsafe version of
vertices. |
ParSLSpineList |
set(ParSLPosition.Buffer vertices,
java.nio.ShortBuffer spine_lengths,
boolean closed)
Initializes this struct with the specified values.
|
ParSLSpineList |
set(ParSLSpineList src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
java.nio.ShortBuffer |
spine_lengths()
Returns a
ShortBuffer view of the data pointed to by the spine_lengths field. |
ParSLSpineList |
spine_lengths(java.nio.ShortBuffer value)
Sets the address of the specified
ShortBuffer to the spine_lengths field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
ParSLPosition.Buffer |
vertices()
Returns a
ParSLPosition.Buffer view of the struct array pointed to by the vertices field. |
ParSLSpineList |
vertices(ParSLPosition.Buffer value)
Sets the address of the specified
ParSLPosition.Buffer to the vertices field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NUM_VERTICES
public static final int NUM_SPINES
public static final int VERTICES
public static final int SPINE_LENGTHS
public static final int CLOSED
public ParSLSpineList(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int num_vertices()
num_vertices field.public short num_spines()
num_spines field.public ParSLPosition.Buffer vertices()
ParSLPosition.Buffer view of the struct array pointed to by the vertices field.public java.nio.ShortBuffer spine_lengths()
ShortBuffer view of the data pointed to by the spine_lengths field.public boolean closed()
closed field.public ParSLSpineList vertices(ParSLPosition.Buffer value)
ParSLPosition.Buffer to the vertices field.public ParSLSpineList spine_lengths(java.nio.ShortBuffer value)
ShortBuffer to the spine_lengths field.public ParSLSpineList closed(boolean value)
closed field.public ParSLSpineList set(ParSLPosition.Buffer vertices, java.nio.ShortBuffer spine_lengths, boolean closed)
public ParSLSpineList set(ParSLSpineList src)
src - the source structpublic static ParSLSpineList malloc()
ParSLSpineList instance allocated with memAlloc. The instance must be explicitly freed.public static ParSLSpineList calloc()
ParSLSpineList instance allocated with memCalloc. The instance must be explicitly freed.public static ParSLSpineList create()
ParSLSpineList instance allocated with BufferUtils.public static ParSLSpineList create(long address)
ParSLSpineList instance for the specified memory address.@Nullable public static ParSLSpineList createSafe(long address)
public static ParSLSpineList.Buffer malloc(int capacity)
ParSLSpineList.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ParSLSpineList.Buffer calloc(int capacity)
ParSLSpineList.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ParSLSpineList.Buffer create(int capacity)
ParSLSpineList.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ParSLSpineList.Buffer create(long address, int capacity)
ParSLSpineList.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ParSLSpineList.Buffer createSafe(long address, int capacity)
public static ParSLSpineList mallocStack()
ParSLSpineList instance allocated on the thread-local MemoryStack.public static ParSLSpineList callocStack()
ParSLSpineList instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ParSLSpineList mallocStack(org.lwjgl.system.MemoryStack stack)
ParSLSpineList instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ParSLSpineList callocStack(org.lwjgl.system.MemoryStack stack)
ParSLSpineList instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ParSLSpineList.Buffer mallocStack(int capacity)
ParSLSpineList.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ParSLSpineList.Buffer callocStack(int capacity)
ParSLSpineList.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ParSLSpineList.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ParSLSpineList.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ParSLSpineList.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ParSLSpineList.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nnum_vertices(long struct)
num_vertices().public static short nnum_spines(long struct)
num_spines().public static ParSLPosition.Buffer nvertices(long struct)
vertices().public static java.nio.ShortBuffer nspine_lengths(long struct)
spine_lengths.public static boolean nclosed(long struct)
closed().public static void nnum_vertices(long struct,
int value)
num_vertices field of the specified struct.public static void nnum_spines(long struct,
short value)
num_spines field of the specified struct.public static void nvertices(long struct,
ParSLPosition.Buffer value)
vertices.public static void nspine_lengths(long struct,
java.nio.ShortBuffer value)
spine_lengths.public static void nclosed(long struct,
boolean value)
closed.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.