Package org.lwjgl.stb
Class STBTTAlignedQuad
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct stbtt_aligned_quad {
float x0;
float y0;
float s0;
float t0;
float x1;
float y1;
float s1;
float t1;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSTBTTAlignedQuad(ByteBuffer container) Creates aSTBTTAlignedQuadinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBTTAlignedQuadcalloc()Returns a newSTBTTAlignedQuadinstance allocated withmemCalloc.static STBTTAlignedQuad.Buffercalloc(int capacity) Returns a newSTBTTAlignedQuad.Bufferinstance allocated withmemCalloc.static STBTTAlignedQuad.Buffercalloc(int capacity, MemoryStack stack) Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTAlignedQuadcalloc(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 @Nullable STBTTAlignedQuadcreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the specifiedMemoryStack.static STBTTAlignedQuadmalloc(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()floats1()intsizeof()Returnssizeof(struct).floatt0()floatt1()floatx0()floatx1()floaty0()floaty1()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
X0
public static final int X0The struct member offsets. -
Y0
public static final int Y0The struct member offsets. -
S0
public static final int S0The struct member offsets. -
T0
public static final int T0The struct member offsets. -
X1
public static final int X1The struct member offsets. -
Y1
public static final int Y1The struct member offsets. -
S1
public static final int S1The struct member offsets. -
T1
public static final int T1The struct member offsets.
-
-
Constructor Details
-
STBTTAlignedQuad
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<STBTTAlignedQuad>
-
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
Returns a newSTBTTAlignedQuadinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSTBTTAlignedQuadinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSTBTTAlignedQuadinstance allocated withBufferUtils. -
create
Returns a newSTBTTAlignedQuadinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBTTAlignedQuad.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSTBTTAlignedQuad.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSTBTTAlignedQuad.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSTBTTAlignedQuad.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSTBTTAlignedQuadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSTBTTAlignedQuad.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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().
-