public class STBTTPackContext
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
PackBegin to PackEnd.
struct stbtt_pack_context {
void * user_allocator_context;
stbrp_context * pack_info;
int width;
int height;
int stride_in_bytes;
int padding;
int skip_missing;
unsigned int h_oversample;
unsigned int v_oversample;
unsigned char * pixels;
stbrp_node * nodes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
STBTTPackContext.Buffer
An array of
STBTTPackContext structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
H_OVERSAMPLE
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
NODES
The struct member offsets.
|
static int |
PACK_INFO
The struct member offsets.
|
static int |
PADDING
The struct member offsets.
|
static int |
PIXELS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SKIP_MISSING
The struct member offsets.
|
static int |
STRIDE_IN_BYTES
The struct member offsets.
|
static int |
USER_ALLOCATOR_CONTEXT
The struct member offsets.
|
static int |
V_OVERSAMPLE
The struct member offsets.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
STBTTPackContext(java.nio.ByteBuffer container)
Creates a
STBTTPackContext instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static STBTTPackContext |
calloc()
Returns a new
STBTTPackContext instance allocated with memCalloc. |
static STBTTPackContext.Buffer |
calloc(int capacity)
Returns a new
STBTTPackContext.Buffer instance allocated with memCalloc. |
static STBTTPackContext |
callocStack()
Returns a new
STBTTPackContext instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTPackContext.Buffer |
callocStack(int capacity)
Returns a new
STBTTPackContext.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTPackContext.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTPackContext.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTPackContext |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTPackContext instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTPackContext |
create()
Returns a new
STBTTPackContext instance allocated with BufferUtils. |
static STBTTPackContext.Buffer |
create(int capacity)
Returns a new
STBTTPackContext.Buffer instance allocated with BufferUtils. |
static STBTTPackContext |
create(long address)
Returns a new
STBTTPackContext instance for the specified memory address. |
static STBTTPackContext.Buffer |
create(long address,
int capacity)
Create a
STBTTPackContext.Buffer instance at the specified memory. |
static STBTTPackContext |
createSafe(long address)
|
static STBTTPackContext.Buffer |
createSafe(long address,
int capacity)
|
int |
h_oversample()
Returns the value of the
h_oversample field. |
int |
height()
Returns the value of the
height field. |
static STBTTPackContext |
malloc()
Returns a new
STBTTPackContext instance allocated with memAlloc. |
static STBTTPackContext.Buffer |
malloc(int capacity)
Returns a new
STBTTPackContext.Buffer instance allocated with memAlloc. |
static STBTTPackContext |
mallocStack()
Returns a new
STBTTPackContext instance allocated on the thread-local MemoryStack. |
static STBTTPackContext.Buffer |
mallocStack(int capacity)
Returns a new
STBTTPackContext.Buffer instance allocated on the thread-local MemoryStack. |
static STBTTPackContext.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTPackContext.Buffer instance allocated on the specified MemoryStack. |
static STBTTPackContext |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTPackContext instance allocated on the specified MemoryStack. |
static int |
nh_oversample(long struct)
Unsafe version of
h_oversample(). |
static int |
nheight(long struct)
Unsafe version of
height(). |
static STBRPNode.Buffer |
nnodes(long struct,
int capacity)
Unsafe version of
nodes(int). |
STBRPNode.Buffer |
nodes(int capacity)
Returns a
STBRPNode.Buffer view of the struct array pointed to by the nodes field. |
static STBRPContext |
npack_info(long struct)
Unsafe version of
pack_info(). |
static int |
npadding(long struct)
Unsafe version of
padding(). |
static java.nio.ByteBuffer |
npixels(long struct,
int capacity)
Unsafe version of
pixels. |
static int |
nskip_missing(long struct)
Unsafe version of
skip_missing(). |
static int |
nstride_in_bytes(long struct)
Unsafe version of
stride_in_bytes(). |
static long |
nuser_allocator_context(long struct)
Unsafe version of
user_allocator_context(). |
static int |
nv_oversample(long struct)
Unsafe version of
v_oversample(). |
static int |
nwidth(long struct)
Unsafe version of
width(). |
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. |
int |
sizeof() |
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. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int USER_ALLOCATOR_CONTEXT
public static final int PACK_INFO
public static final int WIDTH
public static final int HEIGHT
public static final int STRIDE_IN_BYTES
public static final int PADDING
public static final int SKIP_MISSING
public static final int H_OVERSAMPLE
public static final int V_OVERSAMPLE
public static final int PIXELS
public static final int NODES
public STBTTPackContext(java.nio.ByteBuffer container)
STBTTPackContext instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic 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 bufferpublic static STBTTPackContext malloc()
STBTTPackContext instance allocated with memAlloc. The instance must be explicitly freed.public static STBTTPackContext calloc()
STBTTPackContext instance allocated with memCalloc. The instance must be explicitly freed.public static STBTTPackContext create()
STBTTPackContext instance allocated with BufferUtils.public static STBTTPackContext create(long address)
STBTTPackContext instance for the specified memory address.@Nullable public static STBTTPackContext createSafe(long address)
public static STBTTPackContext.Buffer malloc(int capacity)
STBTTPackContext.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTPackContext.Buffer calloc(int capacity)
STBTTPackContext.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTPackContext.Buffer create(int capacity)
STBTTPackContext.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static STBTTPackContext.Buffer create(long address, int capacity)
STBTTPackContext.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static STBTTPackContext.Buffer createSafe(long address, int capacity)
public static STBTTPackContext mallocStack()
STBTTPackContext instance allocated on the thread-local MemoryStack.public static STBTTPackContext callocStack()
STBTTPackContext instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static STBTTPackContext mallocStack(org.lwjgl.system.MemoryStack stack)
STBTTPackContext instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static STBTTPackContext callocStack(org.lwjgl.system.MemoryStack stack)
STBTTPackContext instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static STBTTPackContext.Buffer mallocStack(int capacity)
STBTTPackContext.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static STBTTPackContext.Buffer callocStack(int capacity)
STBTTPackContext.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static STBTTPackContext.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTPackContext.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static STBTTPackContext.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTPackContext.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nuser_allocator_context(long struct)
user_allocator_context().public static STBRPContext npack_info(long struct)
pack_info().public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static int nstride_in_bytes(long struct)
stride_in_bytes().public static int npadding(long struct)
padding().public static int nskip_missing(long struct)
skip_missing().public static int nh_oversample(long struct)
h_oversample().public static int nv_oversample(long struct)
v_oversample().public static java.nio.ByteBuffer npixels(long struct,
int capacity)
pixels.public static STBRPNode.Buffer nnodes(long struct, int capacity)
nodes(int).Copyright LWJGL. All Rights Reserved. License terms.