Package org.lwjgl.util.msdfgen
Class MSDFGenMultichannelConfig
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class MSDFGenMultichannelConfig
extends Struct<MSDFGenMultichannelConfig>
implements NativeResource
struct msdf_multichannel_config {
int overlap_support;
int mode;
int distance_check_mode;
double min_deviation_ratio;
double min_improve_ratio;
}-
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 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
ConstructorsConstructorDescriptionMSDFGenMultichannelConfig(ByteBuffer container) Creates aMSDFGenMultichannelConfiginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MSDFGenMultichannelConfigcalloc()Returns a newMSDFGenMultichannelConfiginstance allocated withmemCalloc.calloc(int capacity) Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSDFGenMultichannelConfigcalloc(MemoryStack stack) Returns a newMSDFGenMultichannelConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MSDFGenMultichannelConfigcreate()Returns a newMSDFGenMultichannelConfiginstance allocated withBufferUtils.create(int capacity) Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated withBufferUtils.static MSDFGenMultichannelConfigcreate(long address) Returns a newMSDFGenMultichannelConfiginstance for the specified memory address.create(long address, int capacity) Create aMSDFGenMultichannelConfig.Bufferinstance at the specified memory.static @Nullable MSDFGenMultichannelConfigcreateSafe(long address) static @Nullable MSDFGenMultichannelConfig.BuffercreateSafe(long address, int capacity) intdistance_check_mode(int value) Sets the specified value to thedistance_check_modefield.static MSDFGenMultichannelConfigmalloc()Returns a newMSDFGenMultichannelConfiginstance allocated withmemAlloc.malloc(int capacity) Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated on the specifiedMemoryStack.static MSDFGenMultichannelConfigmalloc(MemoryStack stack) Returns a newMSDFGenMultichannelConfiginstance allocated on the specifiedMemoryStack.doublemin_deviation_ratio(double value) Sets the specified value to themin_deviation_ratiofield.doublemin_improve_ratio(double value) Sets the specified value to themin_improve_ratiofield.intmode()mode(int value) Sets the specified value to themodefield.static intndistance_check_mode(long struct) Unsafe version ofdistance_check_mode().static voidndistance_check_mode(long struct, int value) Unsafe version ofdistance_check_mode.static doublenmin_deviation_ratio(long struct) Unsafe version ofmin_deviation_ratio().static voidnmin_deviation_ratio(long struct, double value) Unsafe version ofmin_deviation_ratio.static doublenmin_improve_ratio(long struct) Unsafe version ofmin_improve_ratio().static voidnmin_improve_ratio(long struct, double value) Unsafe version ofmin_improve_ratio.static intnmode(long struct) Unsafe version ofmode().static voidnmode(long struct, int value) Unsafe version ofmode.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(int overlap_support, int mode, int distance_check_mode, double min_deviation_ratio, double min_improve_ratio) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
OVERLAP_SUPPORT
public static final int OVERLAP_SUPPORTThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
DISTANCE_CHECK_MODE
public static final int DISTANCE_CHECK_MODEThe struct member offsets. -
MIN_DEVIATION_RATIO
public static final int MIN_DEVIATION_RATIOThe struct member offsets. -
MIN_IMPROVE_RATIO
public static final int MIN_IMPROVE_RATIOThe struct member offsets.
-
-
Constructor Details
-
MSDFGenMultichannelConfig
Creates aMSDFGenMultichannelConfiginstance 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<MSDFGenMultichannelConfig>
-
overlap_support
public int overlap_support()- Returns:
- the value of the
overlap_supportfield.
-
mode
public int mode()- Returns:
- the value of the
modefield.
-
distance_check_mode
public int distance_check_mode()- Returns:
- the value of the
distance_check_modefield.
-
min_deviation_ratio
public double min_deviation_ratio()- Returns:
- the value of the
min_deviation_ratiofield.
-
min_improve_ratio
public double min_improve_ratio()- Returns:
- the value of the
min_improve_ratiofield.
-
overlap_support
Sets the specified value to theoverlap_supportfield. -
mode
Sets the specified value to themodefield. -
distance_check_mode
Sets the specified value to thedistance_check_modefield. -
min_deviation_ratio
Sets the specified value to themin_deviation_ratiofield. -
min_improve_ratio
Sets the specified value to themin_improve_ratiofield. -
set
public MSDFGenMultichannelConfig set(int overlap_support, int mode, int distance_check_mode, double min_deviation_ratio, double min_improve_ratio) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newMSDFGenMultichannelConfiginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newMSDFGenMultichannelConfiginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newMSDFGenMultichannelConfiginstance allocated withBufferUtils. -
create
Returns a newMSDFGenMultichannelConfiginstance for the specified memory address. -
createSafe
-
malloc
Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aMSDFGenMultichannelConfig.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newMSDFGenMultichannelConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newMSDFGenMultichannelConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newMSDFGenMultichannelConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newMSDFGenMultichannelConfig.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(). -
nmode
public static int nmode(long struct) Unsafe version ofmode(). -
ndistance_check_mode
public static int ndistance_check_mode(long struct) Unsafe version ofdistance_check_mode(). -
nmin_deviation_ratio
public static double nmin_deviation_ratio(long struct) Unsafe version ofmin_deviation_ratio(). -
nmin_improve_ratio
public static double nmin_improve_ratio(long struct) Unsafe version ofmin_improve_ratio(). -
noverlap_support
public static void noverlap_support(long struct, int value) Unsafe version ofoverlap_support. -
nmode
public static void nmode(long struct, int value) Unsafe version ofmode. -
ndistance_check_mode
public static void ndistance_check_mode(long struct, int value) Unsafe version ofdistance_check_mode. -
nmin_deviation_ratio
public static void nmin_deviation_ratio(long struct, double value) Unsafe version ofmin_deviation_ratio. -
nmin_improve_ratio
public static void nmin_improve_ratio(long struct, double value) Unsafe version ofmin_improve_ratio.
-