public class STBTTPackedchar
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
PackFontRange
struct stbtt_packedchar {
unsigned short x0;
unsigned short y0;
unsigned short x1;
unsigned short y1;
float xoff;
float yoff;
float xadvance;
float xoff2;
float yoff2;
}| Modifier and Type | Class and Description |
|---|---|
static class |
STBTTPackedchar.Buffer
An array of
STBTTPackedchar 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 |
XOFF2
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.
|
static int |
YOFF2
The struct member offsets.
|
| Constructor and Description |
|---|
STBTTPackedchar(java.nio.ByteBuffer container)
Creates a
STBTTPackedchar instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static STBTTPackedchar |
calloc()
Returns a new
STBTTPackedchar instance allocated with memCalloc. |
static STBTTPackedchar.Buffer |
calloc(int capacity)
Returns a new
STBTTPackedchar.Buffer instance allocated with memCalloc. |
static STBTTPackedchar |
callocStack()
Returns a new
STBTTPackedchar instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTPackedchar.Buffer |
callocStack(int capacity)
Returns a new
STBTTPackedchar.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTPackedchar.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTPackedchar.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTPackedchar |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTPackedchar instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTPackedchar |
create()
Returns a new
STBTTPackedchar instance allocated with BufferUtils. |
static STBTTPackedchar.Buffer |
create(int capacity)
Returns a new
STBTTPackedchar.Buffer instance allocated with BufferUtils. |
static STBTTPackedchar |
create(long address)
Returns a new
STBTTPackedchar instance for the specified memory address. |
static STBTTPackedchar.Buffer |
create(long address,
int capacity)
Create a
STBTTPackedchar.Buffer instance at the specified memory. |
static STBTTPackedchar |
createSafe(long address)
|
static STBTTPackedchar.Buffer |
createSafe(long address,
int capacity)
|
static STBTTPackedchar |
malloc()
Returns a new
STBTTPackedchar instance allocated with memAlloc. |
static STBTTPackedchar.Buffer |
malloc(int capacity)
Returns a new
STBTTPackedchar.Buffer instance allocated with memAlloc. |
static STBTTPackedchar |
mallocStack()
Returns a new
STBTTPackedchar instance allocated on the thread-local MemoryStack. |
static STBTTPackedchar.Buffer |
mallocStack(int capacity)
Returns a new
STBTTPackedchar.Buffer instance allocated on the thread-local MemoryStack. |
static STBTTPackedchar.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTPackedchar.Buffer instance allocated on the specified MemoryStack. |
static STBTTPackedchar |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTPackedchar instance allocated on the specified MemoryStack. |
static short |
nx0(long struct)
Unsafe version of
x0(). |
static void |
nx0(long struct,
short value)
Unsafe version of
x0. |
static short |
nx1(long struct)
Unsafe version of
x1(). |
static void |
nx1(long struct,
short value)
Unsafe version of
x1. |
static float |
nxadvance(long struct)
Unsafe version of
xadvance(). |
static void |
nxadvance(long struct,
float value)
Unsafe version of
xadvance. |
static float |
nxoff(long struct)
Unsafe version of
xoff(). |
static void |
nxoff(long struct,
float value)
Unsafe version of
xoff. |
static float |
nxoff2(long struct)
Unsafe version of
xoff2(). |
static void |
nxoff2(long struct,
float value)
Unsafe version of
xoff2. |
static short |
ny0(long struct)
Unsafe version of
y0(). |
static void |
ny0(long struct,
short value)
Unsafe version of
y0. |
static short |
ny1(long struct)
Unsafe version of
y1(). |
static void |
ny1(long struct,
short value)
Unsafe version of
y1. |
static float |
nyoff(long struct)
Unsafe version of
yoff(). |
static void |
nyoff(long struct,
float value)
Unsafe version of
yoff. |
static float |
nyoff2(long struct)
Unsafe version of
yoff2(). |
static void |
nyoff2(long struct,
float value)
Unsafe version of
yoff2. |
STBTTPackedchar |
set(short x0,
short y0,
short x1,
short y1,
float xoff,
float yoff,
float xadvance,
float xoff2,
float yoff2)
Initializes this struct with the specified values.
|
STBTTPackedchar |
set(STBTTPackedchar src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
short |
x0()
Returns the value of the
x0 field. |
STBTTPackedchar |
x0(short value)
Sets the specified value to the
x0 field. |
short |
x1()
Returns the value of the
x1 field. |
STBTTPackedchar |
x1(short value)
Sets the specified value to the
x1 field. |
float |
xadvance()
Returns the value of the
xadvance field. |
STBTTPackedchar |
xadvance(float value)
Sets the specified value to the
xadvance field. |
float |
xoff()
Returns the value of the
xoff field. |
STBTTPackedchar |
xoff(float value)
Sets the specified value to the
xoff field. |
float |
xoff2()
Returns the value of the
xoff2 field. |
STBTTPackedchar |
xoff2(float value)
Sets the specified value to the
xoff2 field. |
short |
y0()
Returns the value of the
y0 field. |
STBTTPackedchar |
y0(short value)
Sets the specified value to the
y0 field. |
short |
y1()
Returns the value of the
y1 field. |
STBTTPackedchar |
y1(short value)
Sets the specified value to the
y1 field. |
float |
yoff()
Returns the value of the
yoff field. |
STBTTPackedchar |
yoff(float value)
Sets the specified value to the
yoff field. |
float |
yoff2()
Returns the value of the
yoff2 field. |
STBTTPackedchar |
yoff2(float value)
Sets the specified value to the
yoff2 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 static final int XOFF2
public static final int YOFF2
public STBTTPackedchar(java.nio.ByteBuffer container)
STBTTPackedchar 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 float xoff2()
xoff2 field.public float yoff2()
yoff2 field.public STBTTPackedchar x0(short value)
x0 field.public STBTTPackedchar y0(short value)
y0 field.public STBTTPackedchar x1(short value)
x1 field.public STBTTPackedchar y1(short value)
y1 field.public STBTTPackedchar xoff(float value)
xoff field.public STBTTPackedchar yoff(float value)
yoff field.public STBTTPackedchar xadvance(float value)
xadvance field.public STBTTPackedchar xoff2(float value)
xoff2 field.public STBTTPackedchar yoff2(float value)
yoff2 field.public STBTTPackedchar set(short x0, short y0, short x1, short y1, float xoff, float yoff, float xadvance, float xoff2, float yoff2)
public STBTTPackedchar set(STBTTPackedchar src)
src - the source structpublic static STBTTPackedchar malloc()
STBTTPackedchar instance allocated with memAlloc. The instance must be explicitly freed.public static STBTTPackedchar calloc()
STBTTPackedchar instance allocated with memCalloc. The instance must be explicitly freed.public static STBTTPackedchar create()
STBTTPackedchar instance allocated with BufferUtils.public static STBTTPackedchar create(long address)
STBTTPackedchar instance for the specified memory address.@Nullable public static STBTTPackedchar createSafe(long address)
public static STBTTPackedchar.Buffer malloc(int capacity)
STBTTPackedchar.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTPackedchar.Buffer calloc(int capacity)
STBTTPackedchar.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTPackedchar.Buffer create(int capacity)
STBTTPackedchar.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static STBTTPackedchar.Buffer create(long address, int capacity)
STBTTPackedchar.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static STBTTPackedchar.Buffer createSafe(long address, int capacity)
public static STBTTPackedchar mallocStack()
STBTTPackedchar instance allocated on the thread-local MemoryStack.public static STBTTPackedchar callocStack()
STBTTPackedchar instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static STBTTPackedchar mallocStack(org.lwjgl.system.MemoryStack stack)
STBTTPackedchar instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static STBTTPackedchar callocStack(org.lwjgl.system.MemoryStack stack)
STBTTPackedchar instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static STBTTPackedchar.Buffer mallocStack(int capacity)
STBTTPackedchar.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static STBTTPackedchar.Buffer callocStack(int capacity)
STBTTPackedchar.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static STBTTPackedchar.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTPackedchar.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static STBTTPackedchar.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTPackedchar.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().public static float nxoff2(long struct)
xoff2().public static float nyoff2(long struct)
yoff2().public static void nx0(long struct,
short value)
x0.public static void ny0(long struct,
short value)
y0.public static void nx1(long struct,
short value)
x1.public static void ny1(long struct,
short value)
y1.public static void nxoff(long struct,
float value)
xoff.public static void nyoff(long struct,
float value)
yoff.public static void nxadvance(long struct,
float value)
xadvance.public static void nxoff2(long struct,
float value)
xoff2.public static void nyoff2(long struct,
float value)
yoff2.Copyright LWJGL. All Rights Reserved. License terms.