Package org.lwjgl.stb
Class STBTTBakedChar
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct stbtt_bakedchar {
unsigned short x0;
unsigned short y0;
unsigned short x1;
unsigned short y1;
float xoff;
float yoff;
float xadvance;
}-
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 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.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
ConstructorsConstructorDescriptionSTBTTBakedChar(ByteBuffer container) Creates aSTBTTBakedCharinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBTTBakedCharcalloc()Returns a newSTBTTBakedCharinstance allocated withmemCalloc.static STBTTBakedChar.Buffercalloc(int capacity) Returns a newSTBTTBakedChar.Bufferinstance allocated withmemCalloc.static STBTTBakedChar.Buffercalloc(int capacity, MemoryStack stack) Returns a newSTBTTBakedChar.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTBakedCharcalloc(MemoryStack stack) Returns a newSTBTTBakedCharinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTBakedCharcreate()Returns a newSTBTTBakedCharinstance allocated withBufferUtils.static STBTTBakedChar.Buffercreate(int capacity) Returns a newSTBTTBakedChar.Bufferinstance allocated withBufferUtils.static STBTTBakedCharcreate(long address) Returns a newSTBTTBakedCharinstance for the specified memory address.static STBTTBakedChar.Buffercreate(long address, int capacity) Create aSTBTTBakedChar.Bufferinstance at the specified memory.static @Nullable STBTTBakedCharcreateSafe(long address) static @Nullable STBTTBakedChar.BuffercreateSafe(long address, int capacity) static STBTTBakedCharmalloc()Returns a newSTBTTBakedCharinstance allocated withmemAlloc.static STBTTBakedChar.Buffermalloc(int capacity) Returns a newSTBTTBakedChar.Bufferinstance allocated withmemAlloc.static STBTTBakedChar.Buffermalloc(int capacity, MemoryStack stack) Returns a newSTBTTBakedChar.Bufferinstance allocated on the specifiedMemoryStack.static STBTTBakedCharmalloc(MemoryStack stack) Returns a newSTBTTBakedCharinstance allocated on the specifiedMemoryStack.static shortnx0(long struct) Unsafe version ofx0().static shortnx1(long struct) Unsafe version ofx1().static floatnxadvance(long struct) Unsafe version ofxadvance().static floatnxoff(long struct) Unsafe version ofxoff().static shortny0(long struct) Unsafe version ofy0().static shortny1(long struct) Unsafe version ofy1().static floatnyoff(long struct) Unsafe version ofyoff().intsizeof()Returnssizeof(struct).shortx0()shortx1()floatxadvance()floatxoff()shorty0()shorty1()floatyoff()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. -
X1
public static final int X1The struct member offsets. -
Y1
public static final int Y1The struct member offsets. -
XOFF
public static final int XOFFThe struct member offsets. -
YOFF
public static final int YOFFThe struct member offsets. -
XADVANCE
public static final int XADVANCEThe struct member offsets.
-
-
Constructor Details
-
STBTTBakedChar
Creates aSTBTTBakedCharinstance 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<STBTTBakedChar>
-
x0
public short x0()- Returns:
- the value of the
x0field.
-
y0
public short y0()- Returns:
- the value of the
y0field.
-
x1
public short x1()- Returns:
- the value of the
x1field.
-
y1
public short y1()- Returns:
- the value of the
y1field.
-
xoff
public float xoff()- Returns:
- the value of the
xofffield.
-
yoff
public float yoff()- Returns:
- the value of the
yofffield.
-
xadvance
public float xadvance()- Returns:
- the value of the
xadvancefield.
-
malloc
Returns a newSTBTTBakedCharinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSTBTTBakedCharinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSTBTTBakedCharinstance allocated withBufferUtils. -
create
Returns a newSTBTTBakedCharinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBTTBakedChar.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSTBTTBakedChar.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSTBTTBakedChar.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSTBTTBakedChar.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSTBTTBakedCharinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSTBTTBakedCharinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSTBTTBakedChar.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSTBTTBakedChar.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 short nx0(long struct) Unsafe version ofx0(). -
ny0
public static short ny0(long struct) Unsafe version ofy0(). -
nx1
public static short nx1(long struct) Unsafe version ofx1(). -
ny1
public static short ny1(long struct) Unsafe version ofy1(). -
nxoff
public static float nxoff(long struct) Unsafe version ofxoff(). -
nyoff
public static float nyoff(long struct) Unsafe version ofyoff(). -
nxadvance
public static float nxadvance(long struct) Unsafe version ofxadvance().
-