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.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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSTBTTVertex(ByteBuffer container) Creates aSTBTTVertexinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBTTVertexcalloc()Returns a newSTBTTVertexinstance allocated withmemCalloc.static STBTTVertex.Buffercalloc(int capacity) Returns a newSTBTTVertex.Bufferinstance allocated withmemCalloc.static STBTTVertex.Buffercalloc(int capacity, MemoryStack stack) Returns a newSTBTTVertex.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTVertexcalloc(MemoryStack stack) Returns a newSTBTTVertexinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBTTVertexcreate()Returns a newSTBTTVertexinstance allocated withBufferUtils.static STBTTVertex.Buffercreate(int capacity) Returns a newSTBTTVertex.Bufferinstance allocated withBufferUtils.static STBTTVertexcreate(long address) Returns a newSTBTTVertexinstance for the specified memory address.static STBTTVertex.Buffercreate(long address, int capacity) Create aSTBTTVertex.Bufferinstance at the specified memory.static @Nullable STBTTVertexcreateSafe(long address) static @Nullable STBTTVertex.BuffercreateSafe(long address, int capacity) shortcx()shortcx1()shortcy()shortcy1()static STBTTVertexmalloc()Returns a newSTBTTVertexinstance allocated withmemAlloc.static STBTTVertex.Buffermalloc(int capacity) Returns a newSTBTTVertex.Bufferinstance allocated withmemAlloc.static STBTTVertex.Buffermalloc(int capacity, MemoryStack stack) Returns a newSTBTTVertex.Bufferinstance allocated on the specifiedMemoryStack.static STBTTVertexmalloc(MemoryStack stack) Returns a newSTBTTVertexinstance allocated on the specifiedMemoryStack.static shortncx(long struct) Unsafe version ofcx().static shortncx1(long struct) Unsafe version ofcx1().static shortncy(long struct) Unsafe version ofcy().static shortncy1(long struct) Unsafe version ofcy1().static bytentype(long struct) Unsafe version oftype().static shortnx(long struct) Unsafe version ofx().static shortny(long struct) Unsafe version ofy().intsizeof()Returnssizeof(struct).bytetype()shortx()shorty()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. -
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 aSTBTTVertexinstance 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<STBTTVertex>
-
x
public short x()- Returns:
- the value of the
xfield.
-
y
public short y()- Returns:
- the value of the
yfield.
-
cx
public short cx()- Returns:
- the value of the
cxfield.
-
cy
public short cy()- Returns:
- the value of the
cyfield.
-
cx1
public short cx1()- Returns:
- the value of the
cx1field.
-
cy1
public short cy1()- Returns:
- the value of the
cy1field.
-
type
public byte type()- Returns:
- the value of the
typefield.
-
malloc
Returns a newSTBTTVertexinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSTBTTVertexinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSTBTTVertexinstance allocated withBufferUtils. -
create
Returns a newSTBTTVertexinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBTTVertex.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSTBTTVertex.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSTBTTVertex.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSTBTTVertex.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSTBTTVertexinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSTBTTVertexinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSTBTTVertex.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSTBTTVertex.Bufferinstance allocated on the specifiedMemoryStackand 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().
-