Package org.lwjgl.stb
Class STBRPNode
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.stb.STBRPNode
-
- All Implemented Interfaces:
- org.lwjgl.system.Pointer
public class STBRPNode extends org.lwjgl.system.Struct
The opaquestbrp_node
struct.Layout
struct stbrp_node { stbrp_coord x; stbrp_coord y;
stbrp_node
* next; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
STBRPNode.Buffer
An array ofSTBRPNode
structs.
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static STBRPNode
create(long address)
Returns a newSTBRPNode
instance for the specified memory address.static STBRPNode.Buffer
create(long address, int capacity)
Create aSTBRPNode.Buffer
instance at the specified memory.static STBRPNode
createSafe(long address)
static STBRPNode.Buffer
createSafe(long address, int capacity)
STBRPNode
next()
Returns aSTBRPNode
view of the struct pointed to by thenext
field.int
sizeof()
short
x()
Returns the value of thex
field.short
y()
Returns the value of they
field.
-
-
-
Constructor Detail
-
STBRPNode
public STBRPNode(java.nio.ByteBuffer container)
Creates aSTBRPNode
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
x
public short x()
Returns the value of thex
field.
-
y
public short y()
Returns the value of they
field.
-
next
@Nullable public STBRPNode next()
Returns aSTBRPNode
view of the struct pointed to by thenext
field.
-
create
public static STBRPNode create(long address)
Returns a newSTBRPNode
instance for the specified memory address.
-
createSafe
@Nullable public static STBRPNode createSafe(long address)
-
create
public static STBRPNode.Buffer create(long address, int capacity)
Create aSTBRPNode.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static STBRPNode.Buffer createSafe(long address, int capacity)
-
-