Package org.lwjgl.stb
Class STBTTVertex
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSTBTTVertex
(ByteBuffer container) Creates aSTBTTVertex
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBTTVertex
calloc()
Returns a newSTBTTVertex
instance allocated withmemCalloc
.static STBTTVertex.Buffer
calloc
(int capacity) Returns a newSTBTTVertex.Buffer
instance allocated withmemCalloc
.static STBTTVertex.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSTBTTVertex.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBTTVertex
calloc
(MemoryStack stack) Returns a newSTBTTVertex
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBTTVertex
Deprecated.static STBTTVertex.Buffer
callocStack
(int capacity) Deprecated.static STBTTVertex.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static STBTTVertex
callocStack
(MemoryStack stack) Deprecated.static STBTTVertex
create()
Returns a newSTBTTVertex
instance allocated withBufferUtils
.static STBTTVertex.Buffer
create
(int capacity) Returns a newSTBTTVertex.Buffer
instance allocated withBufferUtils
.static STBTTVertex
create
(long address) Returns a newSTBTTVertex
instance for the specified memory address.static STBTTVertex.Buffer
create
(long address, int capacity) Create aSTBTTVertex.Buffer
instance at the specified memory.static @Nullable STBTTVertex
createSafe
(long address) static @Nullable STBTTVertex.Buffer
createSafe
(long address, int capacity) short
cx()
short
cx1()
short
cy()
short
cy1()
static STBTTVertex
malloc()
Returns a newSTBTTVertex
instance allocated withmemAlloc
.static STBTTVertex.Buffer
malloc
(int capacity) Returns a newSTBTTVertex.Buffer
instance allocated withmemAlloc
.static STBTTVertex.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSTBTTVertex.Buffer
instance allocated on the specifiedMemoryStack
.static STBTTVertex
malloc
(MemoryStack stack) Returns a newSTBTTVertex
instance allocated on the specifiedMemoryStack
.static STBTTVertex
Deprecated.static STBTTVertex.Buffer
mallocStack
(int capacity) Deprecated.static STBTTVertex.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static STBTTVertex
mallocStack
(MemoryStack stack) Deprecated.static short
ncx
(long struct) Unsafe version ofcx()
.static short
ncx1
(long struct) Unsafe version ofcx1()
.static short
ncy
(long struct) Unsafe version ofcy()
.static short
ncy1
(long struct) Unsafe version ofcy1()
.static byte
ntype
(long struct) Unsafe version oftype()
.static short
nx
(long struct) Unsafe version ofx()
.static short
ny
(long struct) Unsafe version ofy()
.int
sizeof()
Returnssizeof(struct)
.byte
type()
short
x()
short
y()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
X
public static final int XThe struct member offsets. -
Y
public static final int YThe struct member offsets. -
CX
public static final int CXThe struct member offsets. -
CY
public static final int CYThe struct member offsets. -
CX1
public static final int CX1The struct member offsets. -
CY1
public static final int CY1The struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets.
-
-
Constructor Details
-
STBTTVertex
Creates aSTBTTVertex
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<STBTTVertex>
-
x
public short x()- Returns:
- the value of the
x
field.
-
y
public short y()- Returns:
- the value of the
y
field.
-
cx
public short cx()- Returns:
- the value of the
cx
field.
-
cy
public short cy()- Returns:
- the value of the
cy
field.
-
cx1
public short cx1()- Returns:
- the value of the
cx1
field.
-
cy1
public short cy1()- Returns:
- the value of the
cy1
field.
-
type
public byte type()- Returns:
- the value of the
type
field.
-
malloc
Returns a newSTBTTVertex
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSTBTTVertex
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSTBTTVertex
instance allocated withBufferUtils
. -
create
Returns a newSTBTTVertex
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBTTVertex.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSTBTTVertex.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSTBTTVertex.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSTBTTVertex.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newSTBTTVertex
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSTBTTVertex
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSTBTTVertex.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSTBTTVertex.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nx
public static short nx(long struct) Unsafe version ofx()
. -
ny
public static short ny(long struct) Unsafe version ofy()
. -
ncx
public static short ncx(long struct) Unsafe version ofcx()
. -
ncy
public static short ncy(long struct) Unsafe version ofcy()
. -
ncx1
public static short ncx1(long struct) Unsafe version ofcx1()
. -
ncy1
public static short ncy1(long struct) Unsafe version ofcy1()
. -
ntype
public static byte ntype(long struct) Unsafe version oftype()
.
-