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