public class STBRPNode
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
stbrp_node struct.
struct stbrp_node {
stbrp_coord x;
stbrp_coord y;
stbrp_node * next;
}| Modifier and Type | Class and Description |
|---|---|
static class |
STBRPNode.Buffer
An array of
STBRPNode structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
STBRPNode(java.nio.ByteBuffer container)
Creates a
STBRPNode instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static STBRPNode |
calloc()
Returns a new
STBRPNode instance allocated with memCalloc. |
static STBRPNode.Buffer |
calloc(int capacity)
Returns a new
STBRPNode.Buffer instance allocated with memCalloc. |
static STBRPNode |
callocStack()
Returns a new
STBRPNode instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBRPNode.Buffer |
callocStack(int capacity)
Returns a new
STBRPNode.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBRPNode.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBRPNode.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBRPNode |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBRPNode instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBRPNode |
create()
Returns a new
STBRPNode instance allocated with BufferUtils. |
static STBRPNode.Buffer |
create(int capacity)
Returns a new
STBRPNode.Buffer instance allocated with BufferUtils. |
static STBRPNode |
create(long address)
Returns a new
STBRPNode instance for the specified memory address. |
static STBRPNode.Buffer |
create(long address,
int capacity)
Create a
STBRPNode.Buffer instance at the specified memory. |
static STBRPNode |
createSafe(long address)
|
static STBRPNode.Buffer |
createSafe(long address,
int capacity)
|
static STBRPNode |
malloc()
Returns a new
STBRPNode instance allocated with memAlloc. |
static STBRPNode.Buffer |
malloc(int capacity)
Returns a new
STBRPNode.Buffer instance allocated with memAlloc. |
static STBRPNode |
mallocStack()
Returns a new
STBRPNode instance allocated on the thread-local MemoryStack. |
static STBRPNode.Buffer |
mallocStack(int capacity)
Returns a new
STBRPNode.Buffer instance allocated on the thread-local MemoryStack. |
static STBRPNode.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBRPNode.Buffer instance allocated on the specified MemoryStack. |
static STBRPNode |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBRPNode instance allocated on the specified MemoryStack. |
STBRPNode |
next()
Returns a
STBRPNode view of the struct pointed to by the next field. |
static STBRPNode |
nnext(long struct)
Unsafe version of
next(). |
static short |
nx(long struct)
Unsafe version of
x(). |
static short |
ny(long struct)
Unsafe version of
y(). |
int |
sizeof() |
short |
x()
Returns the value of the
x field. |
short |
y()
Returns the value of the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public static final int NEXT
public STBRPNode(java.nio.ByteBuffer container)
STBRPNode 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 short x()
x field.public short y()
y field.@Nullable public STBRPNode next()
STBRPNode view of the struct pointed to by the next field.public static STBRPNode malloc()
STBRPNode instance allocated with memAlloc. The instance must be explicitly freed.public static STBRPNode calloc()
STBRPNode instance allocated with memCalloc. The instance must be explicitly freed.public static STBRPNode create()
STBRPNode instance allocated with BufferUtils.public static STBRPNode create(long address)
STBRPNode instance for the specified memory address.@Nullable public static STBRPNode createSafe(long address)
public static STBRPNode.Buffer malloc(int capacity)
STBRPNode.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBRPNode.Buffer calloc(int capacity)
STBRPNode.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBRPNode.Buffer create(int capacity)
STBRPNode.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static STBRPNode.Buffer create(long address, int capacity)
STBRPNode.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static STBRPNode.Buffer createSafe(long address, int capacity)
public static STBRPNode mallocStack()
STBRPNode instance allocated on the thread-local MemoryStack.public static STBRPNode callocStack()
STBRPNode instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static STBRPNode mallocStack(org.lwjgl.system.MemoryStack stack)
STBRPNode instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static STBRPNode callocStack(org.lwjgl.system.MemoryStack stack)
STBRPNode instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static STBRPNode.Buffer mallocStack(int capacity)
STBRPNode.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static STBRPNode.Buffer callocStack(int capacity)
STBRPNode.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static STBRPNode.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBRPNode.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static STBRPNode.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBRPNode.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 short nx(long struct)
x().public static short ny(long struct)
y().Copyright LWJGL. All Rights Reserved. License terms.