public class STBTTFontinfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
| Modifier and Type | Class and Description |
|---|---|
static class |
STBTTFontinfo.Buffer
An array of
STBTTFontinfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
STBTTFontinfo(java.nio.ByteBuffer container)
Creates a
STBTTFontinfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static STBTTFontinfo |
calloc()
Returns a new
STBTTFontinfo instance allocated with memCalloc. |
static STBTTFontinfo.Buffer |
calloc(int capacity)
Returns a new
STBTTFontinfo.Buffer instance allocated with memCalloc. |
static STBTTFontinfo |
callocStack()
Returns a new
STBTTFontinfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTFontinfo.Buffer |
callocStack(int capacity)
Returns a new
STBTTFontinfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTFontinfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTFontinfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTFontinfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTFontinfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTFontinfo |
create()
Returns a new
STBTTFontinfo instance allocated with BufferUtils. |
static STBTTFontinfo.Buffer |
create(int capacity)
Returns a new
STBTTFontinfo.Buffer instance allocated with BufferUtils. |
static STBTTFontinfo |
create(long address)
Returns a new
STBTTFontinfo instance for the specified memory address. |
static STBTTFontinfo.Buffer |
create(long address,
int capacity)
Create a
STBTTFontinfo.Buffer instance at the specified memory. |
static STBTTFontinfo |
createSafe(long address)
|
static STBTTFontinfo.Buffer |
createSafe(long address,
int capacity)
|
static STBTTFontinfo |
malloc()
Returns a new
STBTTFontinfo instance allocated with memAlloc. |
static STBTTFontinfo.Buffer |
malloc(int capacity)
Returns a new
STBTTFontinfo.Buffer instance allocated with memAlloc. |
static STBTTFontinfo |
mallocStack()
Returns a new
STBTTFontinfo instance allocated on the thread-local MemoryStack. |
static STBTTFontinfo.Buffer |
mallocStack(int capacity)
Returns a new
STBTTFontinfo.Buffer instance allocated on the thread-local MemoryStack. |
static STBTTFontinfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTFontinfo.Buffer instance allocated on the specified MemoryStack. |
static STBTTFontinfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTFontinfo instance allocated on the specified MemoryStack. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public STBTTFontinfo(java.nio.ByteBuffer container)
STBTTFontinfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic static STBTTFontinfo malloc()
STBTTFontinfo instance allocated with memAlloc. The instance must be explicitly freed.public static STBTTFontinfo calloc()
STBTTFontinfo instance allocated with memCalloc. The instance must be explicitly freed.public static STBTTFontinfo create()
STBTTFontinfo instance allocated with BufferUtils.public static STBTTFontinfo create(long address)
STBTTFontinfo instance for the specified memory address.@Nullable public static STBTTFontinfo createSafe(long address)
public static STBTTFontinfo.Buffer malloc(int capacity)
STBTTFontinfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTFontinfo.Buffer calloc(int capacity)
STBTTFontinfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTFontinfo.Buffer create(int capacity)
STBTTFontinfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static STBTTFontinfo.Buffer create(long address, int capacity)
STBTTFontinfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static STBTTFontinfo.Buffer createSafe(long address, int capacity)
public static STBTTFontinfo mallocStack()
STBTTFontinfo instance allocated on the thread-local MemoryStack.public static STBTTFontinfo callocStack()
STBTTFontinfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static STBTTFontinfo mallocStack(org.lwjgl.system.MemoryStack stack)
STBTTFontinfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static STBTTFontinfo callocStack(org.lwjgl.system.MemoryStack stack)
STBTTFontinfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static STBTTFontinfo.Buffer mallocStack(int capacity)
STBTTFontinfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static STBTTFontinfo.Buffer callocStack(int capacity)
STBTTFontinfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static STBTTFontinfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTFontinfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static STBTTFontinfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTFontinfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacityCopyright LWJGL. All Rights Reserved. License terms.