Package org.lwjgl.stb
Class STBTTAlignedQuad
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Quad used for drawing a baked character, returned by
GetBakedQuad
.
Layout
struct stbtt_aligned_quad {
float x0;
float y0;
float s0;
float t0;
float x1;
float y1;
float s1;
float t1;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionSTBTTAlignedQuad
(ByteBuffer container) Creates aSTBTTAlignedQuad
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBTTAlignedQuad
calloc()
Returns a newSTBTTAlignedQuad
instance allocated withmemCalloc
.static STBTTAlignedQuad.Buffer
calloc
(int capacity) Returns a newSTBTTAlignedQuad.Buffer
instance allocated withmemCalloc
.static STBTTAlignedQuad.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBTTAlignedQuad
calloc
(MemoryStack stack) Returns a newSTBTTAlignedQuad
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBTTAlignedQuad
Deprecated.static STBTTAlignedQuad.Buffer
callocStack
(int capacity) Deprecated.static STBTTAlignedQuad.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static STBTTAlignedQuad
callocStack
(MemoryStack stack) Deprecated.static STBTTAlignedQuad
create()
Returns a newSTBTTAlignedQuad
instance allocated withBufferUtils
.static STBTTAlignedQuad.Buffer
create
(int capacity) Returns a newSTBTTAlignedQuad.Buffer
instance allocated withBufferUtils
.static STBTTAlignedQuad
create
(long address) Returns a newSTBTTAlignedQuad
instance for the specified memory address.static STBTTAlignedQuad.Buffer
create
(long address, int capacity) Create aSTBTTAlignedQuad.Buffer
instance at the specified memory.static STBTTAlignedQuad
createSafe
(long address) static STBTTAlignedQuad.Buffer
createSafe
(long address, int capacity) static STBTTAlignedQuad
malloc()
Returns a newSTBTTAlignedQuad
instance allocated withmemAlloc
.static STBTTAlignedQuad.Buffer
malloc
(int capacity) Returns a newSTBTTAlignedQuad.Buffer
instance allocated withmemAlloc
.static STBTTAlignedQuad.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the specifiedMemoryStack
.static STBTTAlignedQuad
malloc
(MemoryStack stack) Returns a newSTBTTAlignedQuad
instance allocated on the specifiedMemoryStack
.static STBTTAlignedQuad
Deprecated.static STBTTAlignedQuad.Buffer
mallocStack
(int capacity) Deprecated.static STBTTAlignedQuad.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static STBTTAlignedQuad
mallocStack
(MemoryStack stack) Deprecated.static float
ns0
(long struct) Unsafe version ofs0()
.static float
ns1
(long struct) Unsafe version ofs1()
.static float
nt0
(long struct) Unsafe version oft0()
.static float
nt1
(long struct) Unsafe version oft1()
.static float
nx0
(long struct) Unsafe version ofx0()
.static float
nx1
(long struct) Unsafe version ofx1()
.static float
ny0
(long struct) Unsafe version ofy0()
.static float
ny1
(long struct) Unsafe version ofy1()
.float
s0()
float
s1()
int
sizeof()
Returnssizeof(struct)
.float
t0()
float
t1()
float
x0()
float
x1()
float
y0()
float
y1()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
X0
public static final int X0The struct member offsets. -
Y0
public static final int Y0The struct member offsets. -
S0
public static final int S0The struct member offsets. -
T0
public static final int T0The struct member offsets. -
X1
public static final int X1The struct member offsets. -
Y1
public static final int Y1The struct member offsets. -
S1
public static final int S1The struct member offsets. -
T1
public static final int T1The struct member offsets.
-
-
Constructor Details
-
STBTTAlignedQuad
Creates aSTBTTAlignedQuad
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<STBTTAlignedQuad>
-
x0
public float x0()- Returns:
- the value of the
x0
field.
-
y0
public float y0()- Returns:
- the value of the
y0
field.
-
s0
public float s0()- Returns:
- the value of the
s0
field.
-
t0
public float t0()- Returns:
- the value of the
t0
field.
-
x1
public float x1()- Returns:
- the value of the
x1
field.
-
y1
public float y1()- Returns:
- the value of the
y1
field.
-
s1
public float s1()- Returns:
- the value of the
s1
field.
-
t1
public float t1()- Returns:
- the value of the
t1
field.
-
malloc
Returns a newSTBTTAlignedQuad
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSTBTTAlignedQuad
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSTBTTAlignedQuad
instance allocated withBufferUtils
. -
create
Returns a newSTBTTAlignedQuad
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBTTAlignedQuad.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSTBTTAlignedQuad.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSTBTTAlignedQuad.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSTBTTAlignedQuad.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newSTBTTAlignedQuad
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSTBTTAlignedQuad
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nx0
public static float nx0(long struct) Unsafe version ofx0()
. -
ny0
public static float ny0(long struct) Unsafe version ofy0()
. -
ns0
public static float ns0(long struct) Unsafe version ofs0()
. -
nt0
public static float nt0(long struct) Unsafe version oft0()
. -
nx1
public static float nx1(long struct) Unsafe version ofx1()
. -
ny1
public static float ny1(long struct) Unsafe version ofy1()
. -
ns1
public static float ns1(long struct) Unsafe version ofs1()
. -
nt1
public static float nt1(long struct) Unsafe version oft1()
.
-