Package org.lwjgl.stb
Class STBTTAlignedQuad
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.stb.STBTTAlignedQuad
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class STBTTAlignedQuad extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Quad used for drawing a baked character, returned byGetBakedQuad
.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 Modifier and Type Class Description static class
STBTTAlignedQuad.Buffer
An array ofSTBTTAlignedQuad
structs.
-
Constructor Summary
Constructors Constructor Description STBTTAlignedQuad(java.nio.ByteBuffer container)
Creates aSTBTTAlignedQuad
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static STBTTAlignedQuad
calloc()
Returns a newSTBTTAlignedQuad
instance allocated withmemCalloc
.static STBTTAlignedQuad.Buffer
calloc(int capacity)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated withmemCalloc
.static STBTTAlignedQuad
callocStack()
Returns a newSTBTTAlignedQuad
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static STBTTAlignedQuad.Buffer
callocStack(int capacity)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static STBTTAlignedQuad.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBTTAlignedQuad
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuad
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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
mallocStack()
Returns a newSTBTTAlignedQuad
instance allocated on the thread-localMemoryStack
.static STBTTAlignedQuad.Buffer
mallocStack(int capacity)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the thread-localMemoryStack
.static STBTTAlignedQuad.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the specifiedMemoryStack
.static STBTTAlignedQuad
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuad
instance allocated on the specifiedMemoryStack
.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()
Returns the value of thes0
field.float
s1()
Returns the value of thes1
field.int
sizeof()
float
t0()
Returns the value of thet0
field.float
t1()
Returns the value of thet1
field.float
x0()
Returns the value of thex0
field.float
x1()
Returns the value of thex1
field.float
y0()
Returns the value of they0
field.float
y1()
Returns the value of they1
field.
-
-
-
Constructor Detail
-
STBTTAlignedQuad
public STBTTAlignedQuad(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
x0
public float x0()
Returns the value of thex0
field.
-
y0
public float y0()
Returns the value of they0
field.
-
s0
public float s0()
Returns the value of thes0
field.
-
t0
public float t0()
Returns the value of thet0
field.
-
x1
public float x1()
Returns the value of thex1
field.
-
y1
public float y1()
Returns the value of they1
field.
-
s1
public float s1()
Returns the value of thes1
field.
-
t1
public float t1()
Returns the value of thet1
field.
-
malloc
public static STBTTAlignedQuad malloc()
Returns a newSTBTTAlignedQuad
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static STBTTAlignedQuad calloc()
Returns a newSTBTTAlignedQuad
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static STBTTAlignedQuad create()
Returns a newSTBTTAlignedQuad
instance allocated withBufferUtils
.
-
create
public static STBTTAlignedQuad create(long address)
Returns a newSTBTTAlignedQuad
instance for the specified memory address.
-
createSafe
@Nullable public static STBTTAlignedQuad createSafe(long address)
-
malloc
public static STBTTAlignedQuad.Buffer malloc(int capacity)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static STBTTAlignedQuad.Buffer calloc(int capacity)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static STBTTAlignedQuad.Buffer create(int capacity)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static STBTTAlignedQuad.Buffer create(long address, int capacity)
Create aSTBTTAlignedQuad.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static STBTTAlignedQuad.Buffer createSafe(long address, int capacity)
-
mallocStack
public static STBTTAlignedQuad mallocStack()
Returns a newSTBTTAlignedQuad
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static STBTTAlignedQuad callocStack()
Returns a newSTBTTAlignedQuad
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static STBTTAlignedQuad mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuad
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static STBTTAlignedQuad callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuad
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static STBTTAlignedQuad.Buffer mallocStack(int capacity)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static STBTTAlignedQuad.Buffer callocStack(int capacity)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static STBTTAlignedQuad.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static STBTTAlignedQuad.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuad.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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()
.
-
-