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.NativeResourceQuad 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 classSTBTTAlignedQuad.BufferAn array ofSTBTTAlignedQuadstructs.
-
Constructor Summary
Constructors Constructor Description STBTTAlignedQuad(java.nio.ByteBuffer container)Creates aSTBTTAlignedQuadinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static STBTTAlignedQuadcalloc()Returns a newSTBTTAlignedQuadinstance allocated withmemCalloc.static STBTTAlignedQuad.Buffercalloc(int capacity)Returns a newSTBTTAlignedQuad.Bufferinstance allocated withmemCalloc.static STBTTAlignedQuadcallocStack()Returns a newSTBTTAlignedQuadinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static STBTTAlignedQuad.BuffercallocStack(int capacity)Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static STBTTAlignedQuad.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTAlignedQuadcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTAlignedQuadcreate()Returns a newSTBTTAlignedQuadinstance allocated withBufferUtils.static STBTTAlignedQuad.Buffercreate(int capacity)Returns a newSTBTTAlignedQuad.Bufferinstance allocated withBufferUtils.static STBTTAlignedQuadcreate(long address)Returns a newSTBTTAlignedQuadinstance for the specified memory address.static STBTTAlignedQuad.Buffercreate(long address, int capacity)Create aSTBTTAlignedQuad.Bufferinstance at the specified memory.static STBTTAlignedQuadcreateSafe(long address)static STBTTAlignedQuad.BuffercreateSafe(long address, int capacity)static STBTTAlignedQuadmalloc()Returns a newSTBTTAlignedQuadinstance allocated withmemAlloc.static STBTTAlignedQuad.Buffermalloc(int capacity)Returns a newSTBTTAlignedQuad.Bufferinstance allocated withmemAlloc.static STBTTAlignedQuadmallocStack()Returns a newSTBTTAlignedQuadinstance allocated on the thread-localMemoryStack.static STBTTAlignedQuad.BuffermallocStack(int capacity)Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the thread-localMemoryStack.static STBTTAlignedQuad.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the specifiedMemoryStack.static STBTTAlignedQuadmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStack.static floatns0(long struct)Unsafe version ofs0().static floatns1(long struct)Unsafe version ofs1().static floatnt0(long struct)Unsafe version oft0().static floatnt1(long struct)Unsafe version oft1().static floatnx0(long struct)Unsafe version ofx0().static floatnx1(long struct)Unsafe version ofx1().static floatny0(long struct)Unsafe version ofy0().static floatny1(long struct)Unsafe version ofy1().floats0()Returns the value of thes0field.floats1()Returns the value of thes1field.intsizeof()floatt0()Returns the value of thet0field.floatt1()Returns the value of thet1field.floatx0()Returns the value of thex0field.floatx1()Returns the value of thex1field.floaty0()Returns the value of they0field.floaty1()Returns the value of they1field.
-
-
-
Constructor Detail
-
STBTTAlignedQuad
public STBTTAlignedQuad(java.nio.ByteBuffer container)
Creates aSTBTTAlignedQuadinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
x0
public float x0()
Returns the value of thex0field.
-
y0
public float y0()
Returns the value of they0field.
-
s0
public float s0()
Returns the value of thes0field.
-
t0
public float t0()
Returns the value of thet0field.
-
x1
public float x1()
Returns the value of thex1field.
-
y1
public float y1()
Returns the value of they1field.
-
s1
public float s1()
Returns the value of thes1field.
-
t1
public float t1()
Returns the value of thet1field.
-
malloc
public static STBTTAlignedQuad malloc()
Returns a newSTBTTAlignedQuadinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static STBTTAlignedQuad calloc()
Returns a newSTBTTAlignedQuadinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static STBTTAlignedQuad create()
Returns a newSTBTTAlignedQuadinstance allocated withBufferUtils.
-
create
public static STBTTAlignedQuad create(long address)
Returns a newSTBTTAlignedQuadinstance for the specified memory address.
-
createSafe
@Nullable public static STBTTAlignedQuad createSafe(long address)
-
malloc
public static STBTTAlignedQuad.Buffer malloc(int capacity)
Returns a newSTBTTAlignedQuad.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static STBTTAlignedQuad.Buffer calloc(int capacity)
Returns a newSTBTTAlignedQuad.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static STBTTAlignedQuad.Buffer create(int capacity)
Returns a newSTBTTAlignedQuad.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static STBTTAlignedQuad.Buffer create(long address, int capacity)
Create aSTBTTAlignedQuad.Bufferinstance 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 newSTBTTAlignedQuadinstance allocated on the thread-localMemoryStack.
-
callocStack
public static STBTTAlignedQuad callocStack()
Returns a newSTBTTAlignedQuadinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static STBTTAlignedQuad mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static STBTTAlignedQuad callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static STBTTAlignedQuad.Buffer callocStack(int capacity)
Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-