public static class STBRPContext.Buffer extends org.lwjgl.system.StructBuffer<STBRPContext,STBRPContext.Buffer> implements org.lwjgl.system.NativeResource
STBRPContext structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
STBRPContext.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
STBRPNode |
active_head()
Returns a
STBRPNode view of the struct pointed to by the active_head field. |
int |
align()
Returns the value of the
align field. |
STBRPNode.Buffer |
extra()
Returns a
STBRPNode.Buffer view of the extra field. |
STBRPNode |
extra(int index)
Returns a
STBRPNode view of the struct at the specified index of the extra field. |
STBRPNode |
free_head()
Returns a
STBRPNode view of the struct pointed to by the free_head field. |
int |
height()
Returns the value of the
height field. |
int |
heuristic()
Returns the value of the
heuristic field. |
int |
init_mode()
Returns the value of the
init_mode field. |
int |
num_nodes()
Returns the value of the
num_nodes field. |
int |
width()
Returns the value of the
width field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
STBRPContext.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 STBRPContext.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public int width()
width field.public int height()
height field.public int align()
align field.public int init_mode()
init_mode field.public int heuristic()
heuristic field.public int num_nodes()
num_nodes field.@Nullable public STBRPNode active_head()
STBRPNode view of the struct pointed to by the active_head field.@Nullable public STBRPNode free_head()
STBRPNode view of the struct pointed to by the free_head field.public STBRPNode.Buffer extra()
STBRPNode.Buffer view of the extra field.Copyright LWJGL. All Rights Reserved. License terms.