Package org.lwjgl.util.par
Class ParSLConfig
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct parsl_config {
float thickness;
uint32_t flags;
int u_mode;
float curves_max_flatness;
float streamlines_seed_spacing;
{@link ParSLViewport parsl_viewport} streamlines_seed_viewport;
float miter_limit;
}
-
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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionParSLConfig
(ByteBuffer container) Creates aParSLConfig
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParSLConfig
calloc()
Returns a newParSLConfig
instance allocated withmemCalloc
.static ParSLConfig.Buffer
calloc
(int capacity) Returns a newParSLConfig.Buffer
instance allocated withmemCalloc
.static ParSLConfig.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newParSLConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ParSLConfig
calloc
(MemoryStack stack) Returns a newParSLConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ParSLConfig
Deprecated.static ParSLConfig.Buffer
callocStack
(int capacity) Deprecated.static ParSLConfig.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static ParSLConfig
callocStack
(MemoryStack stack) Deprecated.static ParSLConfig
create()
Returns a newParSLConfig
instance allocated withBufferUtils
.static ParSLConfig.Buffer
create
(int capacity) Returns a newParSLConfig.Buffer
instance allocated withBufferUtils
.static ParSLConfig
create
(long address) Returns a newParSLConfig
instance for the specified memory address.static ParSLConfig.Buffer
create
(long address, int capacity) Create aParSLConfig.Buffer
instance at the specified memory.static @Nullable ParSLConfig
createSafe
(long address) static @Nullable ParSLConfig.Buffer
createSafe
(long address, int capacity) float
curves_max_flatness
(float value) Sets the specified value to thecurves_max_flatness
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.static ParSLConfig
malloc()
Returns a newParSLConfig
instance allocated withmemAlloc
.static ParSLConfig.Buffer
malloc
(int capacity) Returns a newParSLConfig.Buffer
instance allocated withmemAlloc
.static ParSLConfig.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newParSLConfig.Buffer
instance allocated on the specifiedMemoryStack
.static ParSLConfig
malloc
(MemoryStack stack) Returns a newParSLConfig
instance allocated on the specifiedMemoryStack
.static ParSLConfig
Deprecated.static ParSLConfig.Buffer
mallocStack
(int capacity) Deprecated.static ParSLConfig.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static ParSLConfig
mallocStack
(MemoryStack stack) Deprecated.float
miter_limit
(float value) Sets the specified value to themiter_limit
field.static float
ncurves_max_flatness
(long struct) Unsafe version ofcurves_max_flatness()
.static void
ncurves_max_flatness
(long struct, float value) Unsafe version ofcurves_max_flatness
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static float
nmiter_limit
(long struct) Unsafe version ofmiter_limit()
.static void
nmiter_limit
(long struct, float value) Unsafe version ofmiter_limit
.static float
nstreamlines_seed_spacing
(long struct) Unsafe version ofstreamlines_seed_spacing()
.static void
nstreamlines_seed_spacing
(long struct, float value) Unsafe version ofstreamlines_seed_spacing
.static ParSLViewport
nstreamlines_seed_viewport
(long struct) Unsafe version ofstreamlines_seed_viewport()
.static void
nstreamlines_seed_viewport
(long struct, ParSLViewport value) Unsafe version ofstreamlines_seed_viewport
.static float
nthickness
(long struct) Unsafe version ofthickness()
.static void
nthickness
(long struct, float value) Unsafe version ofthickness
.static int
nu_mode
(long struct) Unsafe version ofu_mode()
.static void
nu_mode
(long struct, int value) Unsafe version ofu_mode
.set
(float thickness, int flags, int u_mode, float curves_max_flatness, float streamlines_seed_spacing, ParSLViewport streamlines_seed_viewport, float miter_limit) Initializes this struct with the specified values.set
(ParSLConfig src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.float
streamlines_seed_spacing
(float value) Sets the specified value to thestreamlines_seed_spacing
field.streamlines_seed_viewport
(Consumer<ParSLViewport> consumer) Passes thestreamlines_seed_viewport
field to the specifiedConsumer
.Copies the specifiedParSLViewport
to thestreamlines_seed_viewport
field.float
thickness
(float value) Sets the specified value to thethickness
field.int
u_mode()
u_mode
(int value) Sets the specified value to theu_mode
field.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. -
THICKNESS
public static final int THICKNESSThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
U_MODE
public static final int U_MODEThe struct member offsets. -
CURVES_MAX_FLATNESS
public static final int CURVES_MAX_FLATNESSThe struct member offsets. -
STREAMLINES_SEED_SPACING
public static final int STREAMLINES_SEED_SPACINGThe struct member offsets. -
STREAMLINES_SEED_VIEWPORT
public static final int STREAMLINES_SEED_VIEWPORTThe struct member offsets. -
MITER_LIMIT
public static final int MITER_LIMITThe struct member offsets.
-
-
Constructor Details
-
ParSLConfig
Creates aParSLConfig
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<ParSLConfig>
-
thickness
public float thickness()- Returns:
- the value of the
thickness
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
u_mode
public int u_mode()- Returns:
- the value of the
u_mode
field.
-
curves_max_flatness
public float curves_max_flatness()- Returns:
- the value of the
curves_max_flatness
field.
-
streamlines_seed_spacing
public float streamlines_seed_spacing()- Returns:
- the value of the
streamlines_seed_spacing
field.
-
streamlines_seed_viewport
- Returns:
- a
ParSLViewport
view of thestreamlines_seed_viewport
field.
-
miter_limit
public float miter_limit()- Returns:
- the value of the
miter_limit
field.
-
thickness
Sets the specified value to thethickness
field. -
flags
Sets the specified value to theflags
field. -
u_mode
Sets the specified value to theu_mode
field. -
curves_max_flatness
Sets the specified value to thecurves_max_flatness
field. -
streamlines_seed_spacing
Sets the specified value to thestreamlines_seed_spacing
field. -
streamlines_seed_viewport
Copies the specifiedParSLViewport
to thestreamlines_seed_viewport
field. -
streamlines_seed_viewport
Passes thestreamlines_seed_viewport
field to the specifiedConsumer
. -
miter_limit
Sets the specified value to themiter_limit
field. -
set
public ParSLConfig set(float thickness, int flags, int u_mode, float curves_max_flatness, float streamlines_seed_spacing, ParSLViewport streamlines_seed_viewport, float miter_limit) 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 newParSLConfig
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newParSLConfig
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newParSLConfig
instance allocated withBufferUtils
. -
create
Returns a newParSLConfig
instance for the specified memory address. -
createSafe
-
malloc
Returns a newParSLConfig.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newParSLConfig.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newParSLConfig.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aParSLConfig.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 newParSLConfig
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newParSLConfig
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newParSLConfig.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newParSLConfig.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nthickness
public static float nthickness(long struct) Unsafe version ofthickness()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nu_mode
public static int nu_mode(long struct) Unsafe version ofu_mode()
. -
ncurves_max_flatness
public static float ncurves_max_flatness(long struct) Unsafe version ofcurves_max_flatness()
. -
nstreamlines_seed_spacing
public static float nstreamlines_seed_spacing(long struct) Unsafe version ofstreamlines_seed_spacing()
. -
nstreamlines_seed_viewport
Unsafe version ofstreamlines_seed_viewport()
. -
nmiter_limit
public static float nmiter_limit(long struct) Unsafe version ofmiter_limit()
. -
nthickness
public static void nthickness(long struct, float value) Unsafe version ofthickness
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nu_mode
public static void nu_mode(long struct, int value) Unsafe version ofu_mode
. -
ncurves_max_flatness
public static void ncurves_max_flatness(long struct, float value) Unsafe version ofcurves_max_flatness
. -
nstreamlines_seed_spacing
public static void nstreamlines_seed_spacing(long struct, float value) Unsafe version ofstreamlines_seed_spacing
. -
nstreamlines_seed_viewport
Unsafe version ofstreamlines_seed_viewport
. -
nmiter_limit
public static void nmiter_limit(long struct, float value) Unsafe version ofmiter_limit
.
-