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 ofSTBRPContextstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description STBRPNodeactive_head()Returns aSTBRPNodeview of the struct pointed to by theactive_headfield.intalign()Returns the value of thealignfield.STBRPNode.Bufferextra()Returns aSTBRPNode.Buffer view of theextrafield.STBRPNodeextra(int index)Returns aSTBRPNodeview of the struct at the specified index of theextrafield.STBRPNodefree_head()Returns aSTBRPNodeview of the struct pointed to by thefree_headfield.intheight()Returns the value of theheightfield.intheuristic()Returns the value of theheuristicfield.intinit_mode()Returns the value of theinit_modefield.intnum_nodes()Returns the value of thenum_nodesfield.intwidth()Returns the value of thewidthfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSTBRPContext.Bufferinstance 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 thewidthfield.
-
height
public int height()
Returns the value of theheightfield.
-
align
public int align()
Returns the value of thealignfield.
-
init_mode
public int init_mode()
Returns the value of theinit_modefield.
-
heuristic
public int heuristic()
Returns the value of theheuristicfield.
-
num_nodes
public int num_nodes()
Returns the value of thenum_nodesfield.
-
active_head
@Nullable public STBRPNode active_head()
Returns aSTBRPNodeview of the struct pointed to by theactive_headfield.
-
free_head
@Nullable public STBRPNode free_head()
Returns aSTBRPNodeview of the struct pointed to by thefree_headfield.
-
extra
public STBRPNode.Buffer extra()
Returns aSTBRPNode.Buffer view of theextrafield.
-
-