Package org.lwjgl.util.msdfgen
Class MSDFGenConfig
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<MSDFGenConfig>
org.lwjgl.util.msdfgen.MSDFGenConfig
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MSDFGenConfig
extends org.lwjgl.system.Struct<MSDFGenConfig>
implements org.lwjgl.system.NativeResource
Layout
struct msdf_config {
int overlap_support;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionMSDFGenConfig(ByteBuffer container) Creates aMSDFGenConfiginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MSDFGenConfigcalloc()Returns a newMSDFGenConfiginstance allocated withmemCalloc.static MSDFGenConfig.Buffercalloc(int capacity) Returns a newMSDFGenConfig.Bufferinstance allocated withmemCalloc.static MSDFGenConfig.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newMSDFGenConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSDFGenConfigcalloc(org.lwjgl.system.MemoryStack stack) Returns a newMSDFGenConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSDFGenConfigcreate()Returns a newMSDFGenConfiginstance allocated withBufferUtils.static MSDFGenConfig.Buffercreate(int capacity) Returns a newMSDFGenConfig.Bufferinstance allocated withBufferUtils.static MSDFGenConfigcreate(long address) Returns a newMSDFGenConfiginstance for the specified memory address.static MSDFGenConfig.Buffercreate(long address, int capacity) Create aMSDFGenConfig.Bufferinstance at the specified memory.static @Nullable MSDFGenConfigcreateSafe(long address) static @Nullable MSDFGenConfig.BuffercreateSafe(long address, int capacity) static MSDFGenConfigmalloc()Returns a newMSDFGenConfiginstance allocated withmemAlloc.static MSDFGenConfig.Buffermalloc(int capacity) Returns a newMSDFGenConfig.Bufferinstance allocated withmemAlloc.static MSDFGenConfig.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newMSDFGenConfig.Bufferinstance allocated on the specifiedMemoryStack.static MSDFGenConfigmalloc(org.lwjgl.system.MemoryStack stack) Returns a newMSDFGenConfiginstance allocated on the specifiedMemoryStack.static intnoverlap_support(long struct) Unsafe version ofoverlap_support().static voidnoverlap_support(long struct, int value) Unsafe version ofoverlap_support.intoverlap_support(int value) Sets the specified value to theoverlap_supportfield.set(MSDFGenConfig src) Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
OVERLAP_SUPPORT
public static final int OVERLAP_SUPPORTThe struct member offsets.
-
-
Constructor Details
-
MSDFGenConfig
Creates aMSDFGenConfiginstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<MSDFGenConfig>
-
overlap_support
public int overlap_support()- Returns:
- the value of the
overlap_supportfield.
-
overlap_support
Sets the specified value to theoverlap_supportfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newMSDFGenConfiginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMSDFGenConfiginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMSDFGenConfiginstance allocated withBufferUtils. -
create
Returns a newMSDFGenConfiginstance for the specified memory address. -
createSafe
-
malloc
Returns a newMSDFGenConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMSDFGenConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMSDFGenConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMSDFGenConfig.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newMSDFGenConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMSDFGenConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMSDFGenConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMSDFGenConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
noverlap_support
public static int noverlap_support(long struct) Unsafe version ofoverlap_support(). -
noverlap_support
public static void noverlap_support(long struct, int value) Unsafe version ofoverlap_support.
-