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 and Description static classSTBTTAlignedQuad.BufferAn array ofSTBTTAlignedQuadstructs.
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor and 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 and 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 ornullif the address isNULL.static STBTTAlignedQuad.Buffercreate(long address, int capacity)Create aSTBTTAlignedQuad.Bufferinstance at the specified memory.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.floats0()Returns the value of thes0field.floats1()Returns the value of thes1field.intsizeof()Returns thesizeof(struct).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()
Description copied from class:org.lwjgl.system.StructReturns thesizeof(struct).- 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 ornullif the address isNULL.
-
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
-
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
-
-