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()intalign()STBRPNode.Bufferextra()STBRPNodeextra(int index)STBRPNodefree_head()intheight()intheuristic()intinit_mode()intnum_nodes()intwidth()
-
-
-
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 the
widthfield.
-
height
public int height()
- Returns:
- the value of the
heightfield.
-
align
public int align()
- Returns:
- the value of the
alignfield.
-
init_mode
public int init_mode()
- Returns:
- the value of the
init_modefield.
-
heuristic
public int heuristic()
- Returns:
- the value of the
heuristicfield.
-
num_nodes
public int num_nodes()
- Returns:
- the value of the
num_nodesfield.
-
active_head
@Nullable public STBRPNode active_head()
- Returns:
- a
STBRPNodeview of the struct pointed to by theactive_headfield.
-
free_head
@Nullable public STBRPNode free_head()
- Returns:
- a
STBRPNodeview of the struct pointed to by thefree_headfield.
-
extra
public STBRPNode.Buffer extra()
- Returns:
- a
STBRPNode.Buffer view of theSTBRPContext.extra()field.
-
extra
public STBRPNode extra(int index)
- Returns:
- a
STBRPNodeview of the struct at the specified index of theSTBRPContext.extra()field.
-
-