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.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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionParSLConfig(ByteBuffer container) Creates aParSLConfiginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParSLConfigcalloc()Returns a newParSLConfiginstance allocated withmemCalloc.static ParSLConfig.Buffercalloc(int capacity) Returns a newParSLConfig.Bufferinstance allocated withmemCalloc.static ParSLConfig.Buffercalloc(int capacity, MemoryStack stack) Returns a newParSLConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLConfigcalloc(MemoryStack stack) Returns a newParSLConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLConfigDeprecated.static ParSLConfig.BuffercallocStack(int capacity) Deprecated.static ParSLConfig.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static ParSLConfigcallocStack(MemoryStack stack) Deprecated.static ParSLConfigcreate()Returns a newParSLConfiginstance allocated withBufferUtils.static ParSLConfig.Buffercreate(int capacity) Returns a newParSLConfig.Bufferinstance allocated withBufferUtils.static ParSLConfigcreate(long address) Returns a newParSLConfiginstance for the specified memory address.static ParSLConfig.Buffercreate(long address, int capacity) Create aParSLConfig.Bufferinstance at the specified memory.static @Nullable ParSLConfigcreateSafe(long address) static @Nullable ParSLConfig.BuffercreateSafe(long address, int capacity) floatcurves_max_flatness(float value) Sets the specified value to thecurves_max_flatnessfield.intflags()flags(int value) Sets the specified value to theflagsfield.static ParSLConfigmalloc()Returns a newParSLConfiginstance allocated withmemAlloc.static ParSLConfig.Buffermalloc(int capacity) Returns a newParSLConfig.Bufferinstance allocated withmemAlloc.static ParSLConfig.Buffermalloc(int capacity, MemoryStack stack) Returns a newParSLConfig.Bufferinstance allocated on the specifiedMemoryStack.static ParSLConfigmalloc(MemoryStack stack) Returns a newParSLConfiginstance allocated on the specifiedMemoryStack.static ParSLConfigDeprecated.static ParSLConfig.BuffermallocStack(int capacity) Deprecated.static ParSLConfig.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static ParSLConfigmallocStack(MemoryStack stack) Deprecated.floatmiter_limit(float value) Sets the specified value to themiter_limitfield.static floatncurves_max_flatness(long struct) Unsafe version ofcurves_max_flatness().static voidncurves_max_flatness(long struct, float value) Unsafe version ofcurves_max_flatness.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static floatnmiter_limit(long struct) Unsafe version ofmiter_limit().static voidnmiter_limit(long struct, float value) Unsafe version ofmiter_limit.static floatnstreamlines_seed_spacing(long struct) Unsafe version ofstreamlines_seed_spacing().static voidnstreamlines_seed_spacing(long struct, float value) Unsafe version ofstreamlines_seed_spacing.static ParSLViewportnstreamlines_seed_viewport(long struct) Unsafe version ofstreamlines_seed_viewport().static voidnstreamlines_seed_viewport(long struct, ParSLViewport value) Unsafe version ofstreamlines_seed_viewport.static floatnthickness(long struct) Unsafe version ofthickness().static voidnthickness(long struct, float value) Unsafe version ofthickness.static intnu_mode(long struct) Unsafe version ofu_mode().static voidnu_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.intsizeof()Returnssizeof(struct).floatstreamlines_seed_spacing(float value) Sets the specified value to thestreamlines_seed_spacingfield.streamlines_seed_viewport(Consumer<ParSLViewport> consumer) Passes thestreamlines_seed_viewportfield to the specifiedConsumer.Copies the specifiedParSLViewportto thestreamlines_seed_viewportfield.floatthickness(float value) Sets the specified value to thethicknessfield.intu_mode()u_mode(int value) Sets the specified value to theu_modefield.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. -
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 aParSLConfiginstance 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<ParSLConfig>
-
thickness
public float thickness()- Returns:
- the value of the
thicknessfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
u_mode
public int u_mode()- Returns:
- the value of the
u_modefield.
-
curves_max_flatness
public float curves_max_flatness()- Returns:
- the value of the
curves_max_flatnessfield.
-
streamlines_seed_spacing
public float streamlines_seed_spacing()- Returns:
- the value of the
streamlines_seed_spacingfield.
-
streamlines_seed_viewport
- Returns:
- a
ParSLViewportview of thestreamlines_seed_viewportfield.
-
miter_limit
public float miter_limit()- Returns:
- the value of the
miter_limitfield.
-
thickness
Sets the specified value to thethicknessfield. -
flags
Sets the specified value to theflagsfield. -
u_mode
Sets the specified value to theu_modefield. -
curves_max_flatness
Sets the specified value to thecurves_max_flatnessfield. -
streamlines_seed_spacing
Sets the specified value to thestreamlines_seed_spacingfield. -
streamlines_seed_viewport
Copies the specifiedParSLViewportto thestreamlines_seed_viewportfield. -
streamlines_seed_viewport
Passes thestreamlines_seed_viewportfield to the specifiedConsumer. -
miter_limit
Sets the specified value to themiter_limitfield. -
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 newParSLConfiginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newParSLConfiginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newParSLConfiginstance allocated withBufferUtils. -
create
Returns a newParSLConfiginstance for the specified memory address. -
createSafe
-
malloc
Returns a newParSLConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newParSLConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newParSLConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aParSLConfig.Bufferinstance 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 newParSLConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newParSLConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newParSLConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newParSLConfig.Bufferinstance allocated on the specifiedMemoryStackand 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.
-