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 and Description static class
STBTTAlignedQuad.Buffer
An array ofSTBTTAlignedQuad
structs.
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor and 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 and 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 ornull
if the address isNULL
.static STBTTAlignedQuad.Buffer
create(long address, int capacity)
Create aSTBTTAlignedQuad.Buffer
instance at the specified memory.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
.float
s0()
Returns the value of thes0
field.float
s1()
Returns the value of thes1
field.int
sizeof()
Returns thesizeof(struct)
.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()
Description copied from class:org.lwjgl.system.Struct
Returns thesizeof(struct)
.- 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 ornull
if the address isNULL
.
-
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
-
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
-
-