public class STBTTBakedChar
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
BakeFontBitmap.
struct stbtt_bakedchar {
unsigned short x0;
unsigned short y0;
unsigned short x1;
unsigned short y1;
float xoff;
float yoff;
float xadvance;
}| Modifier and Type | Class and Description |
|---|---|
static class |
STBTTBakedChar.Buffer
An array of
STBTTBakedChar structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
X0
The struct member offsets.
|
static int |
X1
The struct member offsets.
|
static int |
XADVANCE
The struct member offsets.
|
static int |
XOFF
The struct member offsets.
|
static int |
Y0
The struct member offsets.
|
static int |
Y1
The struct member offsets.
|
static int |
YOFF
The struct member offsets.
|
| Constructor and Description |
|---|
STBTTBakedChar(java.nio.ByteBuffer container)
Creates a
STBTTBakedChar instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static STBTTBakedChar |
calloc()
Returns a new
STBTTBakedChar instance allocated with memCalloc. |
static STBTTBakedChar.Buffer |
calloc(int capacity)
Returns a new
STBTTBakedChar.Buffer instance allocated with memCalloc. |
static STBTTBakedChar |
callocStack()
Returns a new
STBTTBakedChar instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTBakedChar.Buffer |
callocStack(int capacity)
Returns a new
STBTTBakedChar.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTBakedChar.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTBakedChar.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTBakedChar |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTBakedChar instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTBakedChar |
create()
Returns a new
STBTTBakedChar instance allocated with BufferUtils. |
static STBTTBakedChar.Buffer |
create(int capacity)
Returns a new
STBTTBakedChar.Buffer instance allocated with BufferUtils. |
static STBTTBakedChar |
create(long address)
Returns a new
STBTTBakedChar instance for the specified memory address. |
static STBTTBakedChar.Buffer |
create(long address,
int capacity)
Create a
STBTTBakedChar.Buffer instance at the specified memory. |
static STBTTBakedChar |
createSafe(long address)
|
static STBTTBakedChar.Buffer |
createSafe(long address,
int capacity)
|
static STBTTBakedChar |
malloc()
Returns a new
STBTTBakedChar instance allocated with memAlloc. |
static STBTTBakedChar.Buffer |
malloc(int capacity)
Returns a new
STBTTBakedChar.Buffer instance allocated with memAlloc. |
static STBTTBakedChar |
mallocStack()
Returns a new
STBTTBakedChar instance allocated on the thread-local MemoryStack. |
static STBTTBakedChar.Buffer |
mallocStack(int capacity)
Returns a new
STBTTBakedChar.Buffer instance allocated on the thread-local MemoryStack. |
static STBTTBakedChar.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTBakedChar.Buffer instance allocated on the specified MemoryStack. |
static STBTTBakedChar |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTBakedChar instance allocated on the specified MemoryStack. |
static short |
nx0(long struct)
Unsafe version of
x0(). |
static short |
nx1(long struct)
Unsafe version of
x1(). |
static float |
nxadvance(long struct)
Unsafe version of
xadvance(). |
static float |
nxoff(long struct)
Unsafe version of
xoff(). |
static short |
ny0(long struct)
Unsafe version of
y0(). |
static short |
ny1(long struct)
Unsafe version of
y1(). |
static float |
nyoff(long struct)
Unsafe version of
yoff(). |
int |
sizeof() |
short |
x0()
Returns the value of the
x0 field. |
short |
x1()
Returns the value of the
x1 field. |
float |
xadvance()
Returns the value of the
xadvance field. |
float |
xoff()
Returns the value of the
xoff field. |
short |
y0()
Returns the value of the
y0 field. |
short |
y1()
Returns the value of the
y1 field. |
float |
yoff()
Returns the value of the
yoff field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X0
public static final int Y0
public static final int X1
public static final int Y1
public static final int XOFF
public static final int YOFF
public static final int XADVANCE
public STBTTBakedChar(java.nio.ByteBuffer container)
STBTTBakedChar 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 short x0()
x0 field.public short y0()
y0 field.public short x1()
x1 field.public short y1()
y1 field.public float xoff()
xoff field.public float yoff()
yoff field.public float xadvance()
xadvance field.public static STBTTBakedChar malloc()
STBTTBakedChar instance allocated with memAlloc. The instance must be explicitly freed.public static STBTTBakedChar calloc()
STBTTBakedChar instance allocated with memCalloc. The instance must be explicitly freed.public static STBTTBakedChar create()
STBTTBakedChar instance allocated with BufferUtils.public static STBTTBakedChar create(long address)
STBTTBakedChar instance for the specified memory address.@Nullable public static STBTTBakedChar createSafe(long address)
public static STBTTBakedChar.Buffer malloc(int capacity)
STBTTBakedChar.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTBakedChar.Buffer calloc(int capacity)
STBTTBakedChar.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTBakedChar.Buffer create(int capacity)
STBTTBakedChar.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static STBTTBakedChar.Buffer create(long address, int capacity)
STBTTBakedChar.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static STBTTBakedChar.Buffer createSafe(long address, int capacity)
public static STBTTBakedChar mallocStack()
STBTTBakedChar instance allocated on the thread-local MemoryStack.public static STBTTBakedChar callocStack()
STBTTBakedChar instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static STBTTBakedChar mallocStack(org.lwjgl.system.MemoryStack stack)
STBTTBakedChar instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static STBTTBakedChar callocStack(org.lwjgl.system.MemoryStack stack)
STBTTBakedChar instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static STBTTBakedChar.Buffer mallocStack(int capacity)
STBTTBakedChar.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static STBTTBakedChar.Buffer callocStack(int capacity)
STBTTBakedChar.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static STBTTBakedChar.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTBakedChar.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static STBTTBakedChar.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTBakedChar.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 short nx0(long struct)
x0().public static short ny0(long struct)
y0().public static short nx1(long struct)
x1().public static short ny1(long struct)
y1().public static float nxoff(long struct)
xoff().public static float nyoff(long struct)
yoff().public static float nxadvance(long struct)
xadvance().Copyright LWJGL. All Rights Reserved. License terms.