public class STBTTVertex
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct stbtt_vertex {
stbtt_vertex_type x;
stbtt_vertex_type y;
stbtt_vertex_type cx;
stbtt_vertex_type cy;
stbtt_vertex_type cx1;
stbtt_vertex_type cy1;
unsigned char type;
}| Modifier and Type | Class and Description |
|---|---|
static class |
STBTTVertex.Buffer
An array of
STBTTVertex structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CX
The struct member offsets.
|
static int |
CX1
The struct member offsets.
|
static int |
CY
The struct member offsets.
|
static int |
CY1
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
STBTTVertex(java.nio.ByteBuffer container)
Creates a
STBTTVertex instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static STBTTVertex |
calloc()
Returns a new
STBTTVertex instance allocated with memCalloc. |
static STBTTVertex.Buffer |
calloc(int capacity)
Returns a new
STBTTVertex.Buffer instance allocated with memCalloc. |
static STBTTVertex |
callocStack()
Returns a new
STBTTVertex instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTVertex.Buffer |
callocStack(int capacity)
Returns a new
STBTTVertex.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBTTVertex.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTVertex.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTVertex |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTVertex instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBTTVertex |
create()
Returns a new
STBTTVertex instance allocated with BufferUtils. |
static STBTTVertex.Buffer |
create(int capacity)
Returns a new
STBTTVertex.Buffer instance allocated with BufferUtils. |
static STBTTVertex |
create(long address)
Returns a new
STBTTVertex instance for the specified memory address. |
static STBTTVertex.Buffer |
create(long address,
int capacity)
Create a
STBTTVertex.Buffer instance at the specified memory. |
static STBTTVertex |
createSafe(long address)
|
static STBTTVertex.Buffer |
createSafe(long address,
int capacity)
|
short |
cx()
Returns the value of the
cx field. |
short |
cx1()
Returns the value of the
cx1 field. |
short |
cy()
Returns the value of the
cy field. |
short |
cy1()
Returns the value of the
cy1 field. |
static STBTTVertex |
malloc()
Returns a new
STBTTVertex instance allocated with memAlloc. |
static STBTTVertex.Buffer |
malloc(int capacity)
Returns a new
STBTTVertex.Buffer instance allocated with memAlloc. |
static STBTTVertex |
mallocStack()
Returns a new
STBTTVertex instance allocated on the thread-local MemoryStack. |
static STBTTVertex.Buffer |
mallocStack(int capacity)
Returns a new
STBTTVertex.Buffer instance allocated on the thread-local MemoryStack. |
static STBTTVertex.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTVertex.Buffer instance allocated on the specified MemoryStack. |
static STBTTVertex |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBTTVertex instance allocated on the specified MemoryStack. |
static short |
ncx(long struct)
Unsafe version of
cx(). |
static short |
ncx1(long struct)
Unsafe version of
cx1(). |
static short |
ncy(long struct)
Unsafe version of
cy(). |
static short |
ncy1(long struct)
Unsafe version of
cy1(). |
static byte |
ntype(long struct)
Unsafe version of
type(). |
static short |
nx(long struct)
Unsafe version of
x(). |
static short |
ny(long struct)
Unsafe version of
y(). |
int |
sizeof() |
byte |
type()
Returns the value of the
type field. |
short |
x()
Returns the value of the
x field. |
short |
y()
Returns the value of the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public static final int CX
public static final int CY
public static final int CX1
public static final int CY1
public static final int TYPE
public STBTTVertex(java.nio.ByteBuffer container)
STBTTVertex 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 short x()
x field.public short y()
y field.public short cx()
cx field.public short cy()
cy field.public short cx1()
cx1 field.public short cy1()
cy1 field.public byte type()
type field.public static STBTTVertex malloc()
STBTTVertex instance allocated with memAlloc. The instance must be explicitly freed.public static STBTTVertex calloc()
STBTTVertex instance allocated with memCalloc. The instance must be explicitly freed.public static STBTTVertex create()
STBTTVertex instance allocated with BufferUtils.public static STBTTVertex create(long address)
STBTTVertex instance for the specified memory address.@Nullable public static STBTTVertex createSafe(long address)
public static STBTTVertex.Buffer malloc(int capacity)
STBTTVertex.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTVertex.Buffer calloc(int capacity)
STBTTVertex.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBTTVertex.Buffer create(int capacity)
STBTTVertex.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static STBTTVertex.Buffer create(long address, int capacity)
STBTTVertex.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static STBTTVertex.Buffer createSafe(long address, int capacity)
public static STBTTVertex mallocStack()
STBTTVertex instance allocated on the thread-local MemoryStack.public static STBTTVertex callocStack()
STBTTVertex instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static STBTTVertex mallocStack(org.lwjgl.system.MemoryStack stack)
STBTTVertex instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static STBTTVertex callocStack(org.lwjgl.system.MemoryStack stack)
STBTTVertex instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static STBTTVertex.Buffer mallocStack(int capacity)
STBTTVertex.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static STBTTVertex.Buffer callocStack(int capacity)
STBTTVertex.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static STBTTVertex.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTVertex.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static STBTTVertex.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBTTVertex.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static short nx(long struct)
x().public static short ny(long struct)
y().public static short ncx(long struct)
cx().public static short ncy(long struct)
cy().public static short ncx1(long struct)
cx1().public static short ncy1(long struct)
cy1().public static byte ntype(long struct)
type().Copyright LWJGL. All Rights Reserved. License terms.