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.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 member offsets.static final int
The 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 aMSDFGenMultichannelConfig
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic MSDFGenMultichannelConfig
calloc()
Returns a newMSDFGenMultichannelConfig
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MSDFGenMultichannelConfig
calloc
(MemoryStack stack) Returns a newMSDFGenMultichannelConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static MSDFGenMultichannelConfig
create()
Returns a newMSDFGenMultichannelConfig
instance allocated withBufferUtils
.create
(int capacity) Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated withBufferUtils
.static MSDFGenMultichannelConfig
create
(long address) Returns a newMSDFGenMultichannelConfig
instance for the specified memory address.create
(long address, int capacity) Create aMSDFGenMultichannelConfig.Buffer
instance at the specified memory.static @Nullable MSDFGenMultichannelConfig
createSafe
(long address) static @Nullable MSDFGenMultichannelConfig.Buffer
createSafe
(long address, int capacity) int
distance_check_mode
(int value) Sets the specified value to thedistance_check_mode
field.static MSDFGenMultichannelConfig
malloc()
Returns a newMSDFGenMultichannelConfig
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated on the specifiedMemoryStack
.static MSDFGenMultichannelConfig
malloc
(MemoryStack stack) Returns a newMSDFGenMultichannelConfig
instance allocated on the specifiedMemoryStack
.double
min_deviation_ratio
(double value) Sets the specified value to themin_deviation_ratio
field.double
min_improve_ratio
(double value) Sets the specified value to themin_improve_ratio
field.int
mode()
mode
(int value) Sets the specified value to themode
field.static int
ndistance_check_mode
(long struct) Unsafe version ofdistance_check_mode()
.static void
ndistance_check_mode
(long struct, int value) Unsafe version ofdistance_check_mode
.static double
nmin_deviation_ratio
(long struct) Unsafe version ofmin_deviation_ratio()
.static void
nmin_deviation_ratio
(long struct, double value) Unsafe version ofmin_deviation_ratio
.static double
nmin_improve_ratio
(long struct) Unsafe version ofmin_improve_ratio()
.static void
nmin_improve_ratio
(long struct, double value) Unsafe version ofmin_improve_ratio
.static int
nmode
(long struct) Unsafe version ofmode()
.static void
nmode
(long struct, int value) Unsafe version ofmode
.static int
noverlap_support
(long struct) Unsafe version ofoverlap_support()
.static void
noverlap_support
(long struct, int value) Unsafe version ofoverlap_support
.int
overlap_support
(int value) Sets the specified value to theoverlap_support
field.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.int
sizeof()
Returnssizeof(struct)
.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. -
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 aMSDFGenMultichannelConfig
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<MSDFGenMultichannelConfig>
-
overlap_support
public int overlap_support()- Returns:
- the value of the
overlap_support
field.
-
mode
public int mode()- Returns:
- the value of the
mode
field.
-
distance_check_mode
public int distance_check_mode()- Returns:
- the value of the
distance_check_mode
field.
-
min_deviation_ratio
public double min_deviation_ratio()- Returns:
- the value of the
min_deviation_ratio
field.
-
min_improve_ratio
public double min_improve_ratio()- Returns:
- the value of the
min_improve_ratio
field.
-
overlap_support
Sets the specified value to theoverlap_support
field. -
mode
Sets the specified value to themode
field. -
distance_check_mode
Sets the specified value to thedistance_check_mode
field. -
min_deviation_ratio
Sets the specified value to themin_deviation_ratio
field. -
min_improve_ratio
Sets the specified value to themin_improve_ratio
field. -
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 newMSDFGenMultichannelConfig
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newMSDFGenMultichannelConfig
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newMSDFGenMultichannelConfig
instance allocated withBufferUtils
. -
create
Returns a newMSDFGenMultichannelConfig
instance for the specified memory address. -
createSafe
-
malloc
Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aMSDFGenMultichannelConfig.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newMSDFGenMultichannelConfig
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newMSDFGenMultichannelConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newMSDFGenMultichannelConfig.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-