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 Deprecated 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 STBTTAlignedQuad.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTAlignedQuadcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTAlignedQuadcallocStack()Deprecated.static STBTTAlignedQuad.BuffercallocStack(int capacity)Deprecated.static STBTTAlignedQuad.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static STBTTAlignedQuadcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 STBTTAlignedQuad.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the specifiedMemoryStack.static STBTTAlignedQuadmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStack.static STBTTAlignedQuadmallocStack()Deprecated.static STBTTAlignedQuad.BuffermallocStack(int capacity)Deprecated.static STBTTAlignedQuad.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static STBTTAlignedQuadmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()floats1()intsizeof()floatt0()floatt1()floatx0()floatx1()floaty0()floaty1()
-
-
-
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 the
x0field.
-
y0
public float y0()
- Returns:
- the value of the
y0field.
-
s0
public float s0()
- Returns:
- the value of the
s0field.
-
t0
public float t0()
- Returns:
- the value of the
t0field.
-
x1
public float x1()
- Returns:
- the value of the
x1field.
-
y1
public float y1()
- Returns:
- the value of the
y1field.
-
s1
public float s1()
- Returns:
- the value of the
s1field.
-
t1
public float t1()
- Returns:
- the value of the
t1field.
-
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
@Deprecated public static STBTTAlignedQuad mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static STBTTAlignedQuad callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static STBTTAlignedQuad mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static STBTTAlignedQuad callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static STBTTAlignedQuad.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static STBTTAlignedQuad.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static STBTTAlignedQuad.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static STBTTAlignedQuad.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static STBTTAlignedQuad malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static STBTTAlignedQuad calloc(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
-
malloc
public static STBTTAlignedQuad.Buffer malloc(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
-
calloc
public static STBTTAlignedQuad.Buffer calloc(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().
-
-