public static class STBTTPackContext.Buffer extends org.lwjgl.system.StructBuffer<STBTTPackContext,STBTTPackContext.Buffer> implements org.lwjgl.system.NativeResource
STBTTPackContext structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
STBTTPackContext.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
int |
h_oversample()
Returns the value of the
h_oversample field. |
int |
height()
Returns the value of the
height field. |
STBRPNode.Buffer |
nodes(int capacity)
Returns a
STBRPNode.Buffer view of the struct array pointed to by the nodes field. |
STBRPContext |
pack_info()
Returns a
STBRPContext view of the struct pointed to by the pack_info field. |
int |
padding()
Returns the value of the
padding field. |
java.nio.ByteBuffer |
pixels(int capacity)
Returns a
ByteBuffer view of the data pointed to by the pixels field. |
boolean |
skip_missing()
Returns the value of the
skip_missing field. |
int |
stride_in_bytes()
Returns the value of the
stride_in_bytes field. |
long |
user_allocator_context()
Returns the value of the
user_allocator_context field. |
int |
v_oversample()
Returns the value of the
v_oversample 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)
STBTTPackContext.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 STBTTPackContext.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 long user_allocator_context()
user_allocator_context field.public STBRPContext pack_info()
STBRPContext view of the struct pointed to by the pack_info field.public int width()
width field.public int height()
height field.public int stride_in_bytes()
stride_in_bytes field.public int padding()
padding field.public boolean skip_missing()
skip_missing field.public int h_oversample()
h_oversample field.public int v_oversample()
v_oversample field.public java.nio.ByteBuffer pixels(int capacity)
ByteBuffer view of the data pointed to by the pixels field.capacity - the number of elements in the returned bufferpublic STBRPNode.Buffer nodes(int capacity)
STBRPNode.Buffer view of the struct array pointed to by the nodes field.capacity - the number of elements in the returned bufferCopyright LWJGL. All Rights Reserved. License terms.