Package org.lwjgl.stb
Class STBRPContext.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<STBRPContext,STBRPContext.Buffer>
-
- org.lwjgl.stb.STBRPContext.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<STBRPContext>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- STBRPContext
public static class STBRPContext.Buffer extends org.lwjgl.system.StructBuffer<STBRPContext,STBRPContext.Buffer> implements org.lwjgl.system.NativeResource
An array ofSTBRPContext
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description STBRPNode
active_head()
Returns aSTBRPNode
view of the struct pointed to by theactive_head
field.int
align()
Returns the value of thealign
field.STBRPNode.Buffer
extra()
Returns aSTBRPNode
.Buffer view of theextra
field.STBRPNode
extra(int index)
Returns aSTBRPNode
view of the struct at the specified index of theextra
field.STBRPNode
free_head()
Returns aSTBRPNode
view of the struct pointed to by thefree_head
field.int
height()
Returns the value of theheight
field.int
heuristic()
Returns the value of theheuristic
field.int
init_mode()
Returns the value of theinit_mode
field.int
num_nodes()
Returns the value of thenum_nodes
field.int
width()
Returns the value of thewidth
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSTBRPContext.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 bySTBRPContext.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
width
public int width()
Returns the value of thewidth
field.
-
height
public int height()
Returns the value of theheight
field.
-
align
public int align()
Returns the value of thealign
field.
-
init_mode
public int init_mode()
Returns the value of theinit_mode
field.
-
heuristic
public int heuristic()
Returns the value of theheuristic
field.
-
num_nodes
public int num_nodes()
Returns the value of thenum_nodes
field.
-
active_head
@Nullable public STBRPNode active_head()
Returns aSTBRPNode
view of the struct pointed to by theactive_head
field.
-
free_head
@Nullable public STBRPNode free_head()
Returns aSTBRPNode
view of the struct pointed to by thefree_head
field.
-
extra
public STBRPNode.Buffer extra()
Returns aSTBRPNode
.Buffer view of theextra
field.
-
-