Top Description Inners Fields Constructors Methods
org.lwjgl.util.par

public Class ParSLConfig

extends Struct<ParSLConfig>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct parsl_config
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Immutable configuration for a streamlines context.

Layout


struct parsl_config {
    float thickness;
    uint32_t flags;
    int u_mode;
    float curves_max_flatness;
    float streamlines_seed_spacing;
    parsl_viewport streamlines_seed_viewport;
    float miter_limit;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ParSLConfig.Buffer

An array of ParSLConfig structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CURVES_MAX_FLATNESS

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
MITER_LIMIT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STREAMLINES_SEED_SPACING

The struct member offsets.

public static final int
STREAMLINES_SEED_VIEWPORT

The struct member offsets.

public static final int
THICKNESS

The struct member offsets.

public static final int
U_MODE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
ParSLConfig(long address, ByteBuffer container)

public
ParSLConfig(ByteBuffer container)

Creates a ParSLConfig instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static ParSLConfig
calloc()

Returns a new ParSLConfig instance allocated with memCalloc.

public static ParSLConfig.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new ParSLConfig.Buffer instance allocated with memCalloc.

public static ParSLConfig
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ParSLConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ParSLConfig.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ParSLConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ParSLConfig
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLConfig
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLConfig.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLConfig.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected ParSLConfig
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static ParSLConfig
create()

Returns a new ParSLConfig instance allocated with BufferUtils.

public static ParSLConfig
create(long address)

Returns a new ParSLConfig instance for the specified memory address.

public static ParSLConfig.Buffer
create(int
the buffer capacity
capacity
)

Returns a new ParSLConfig.Buffer instance allocated with BufferUtils.

public static ParSLConfig.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a ParSLConfig.Buffer instance at the specified memory.

public static ParSLConfig
createSafe(long address)

Like create, but returns null if address is NULL.

public static ParSLConfig.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public float

Returns:

the value of the curves_max_flatness field.
curves_max_flatness
()

public ParSLConfig
curves_max_flatness(float value)

Sets the specified value to the curves_max_flatness field.

public int
public ParSLConfig
flags(int value)

Sets the specified value to the flags field.

public static ParSLConfig
malloc()

Returns a new ParSLConfig instance allocated with memAlloc.

public static ParSLConfig.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new ParSLConfig.Buffer instance allocated with memAlloc.

public static ParSLConfig
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ParSLConfig instance allocated on the specified MemoryStack.

public static ParSLConfig.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ParSLConfig.Buffer instance allocated on the specified MemoryStack.

public static ParSLConfig
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLConfig
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLConfig.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static ParSLConfig.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public float

Returns:

the value of the miter_limit field.
miter_limit
()

public ParSLConfig
miter_limit(float value)

Sets the specified value to the miter_limit field.

public static float
ncurves_max_flatness(long struct)

Unsafe version of curves_max_flatness.

public static void
ncurves_max_flatness(long struct, float value)

Unsafe version of curves_max_flatness.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static float
nmiter_limit(long struct)

Unsafe version of miter_limit.

public static void
nmiter_limit(long struct, float value)

Unsafe version of miter_limit.

public static float
nstreamlines_seed_spacing(long struct)

Unsafe version of streamlines_seed_spacing.

public static void
nstreamlines_seed_spacing(long struct, float value)

Unsafe version of streamlines_seed_spacing.

public static ParSLViewport
public static void
public static float
nthickness(long struct)

Unsafe version of thickness.

public static void
nthickness(long struct, float value)

Unsafe version of thickness.

public static int
nu_mode(long struct)

Unsafe version of u_mode.

public static void
nu_mode(long struct, int value)

Unsafe version of u_mode.

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.

public ParSLConfig

Returns:

this struct
set
(ParSLConfig
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public float

Returns:

the value of the streamlines_seed_spacing field.
streamlines_seed_spacing
()

public ParSLConfig
streamlines_seed_spacing(float value)

Sets the specified value to the streamlines_seed_spacing field.

public ParSLViewport

Returns:

a ParSLViewport view of the streamlines_seed_viewport field.
streamlines_seed_viewport
()

public ParSLConfig
streamlines_seed_viewport(ParSLViewport value)

Copies the specified ParSLViewport to the streamlines_seed_viewport field.

public ParSLConfig
streamlines_seed_viewport(Consumer<ParSLViewport> consumer)

Passes the streamlines_seed_viewport field to the specified Consumer.

public float

Returns:

the value of the thickness field.
thickness
()

public ParSLConfig
thickness(float value)

Sets the specified value to the thickness field.

public int
public ParSLConfig
u_mode(int value)

Sets the specified value to the u_mode field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CURVES_MAX_FLATNESSback to summary
public static final int CURVES_MAX_FLATNESS

The struct member offsets.

FLAGSback to summary
public static final int FLAGS

The struct member offsets.

MITER_LIMITback to summary
public static final int MITER_LIMIT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STREAMLINES_SEED_SPACINGback to summary
public static final int STREAMLINES_SEED_SPACING

The struct member offsets.

STREAMLINES_SEED_VIEWPORTback to summary
public static final int STREAMLINES_SEED_VIEWPORT

The struct member offsets.

THICKNESSback to summary
public static final int THICKNESS

The struct member offsets.

U_MODEback to summary
public static final int U_MODE

The struct member offsets.

Constructor Detail

ParSLConfigback to summary
protected ParSLConfig(long address, ByteBuffer container)
ParSLConfigback to summary
public ParSLConfig(ByteBuffer container)

Creates a ParSLConfig instance at the current position of the specified ByteBuffer 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 Detail

callocback to summary
public static ParSLConfig calloc()

Returns a new ParSLConfig instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static ParSLConfig.Buffer calloc(int capacity)

Returns a new ParSLConfig.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static ParSLConfig calloc(MemoryStack stack)

Returns a new ParSLConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static ParSLConfig.Buffer calloc(int capacity, MemoryStack stack)

Returns a new ParSLConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static ParSLConfig callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ParSLConfig callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ParSLConfig.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static ParSLConfig.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
createback to summary
protected ParSLConfig create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static ParSLConfig create()

Returns a new ParSLConfig instance allocated with BufferUtils.

createback to summary
public static ParSLConfig create(long address)

Returns a new ParSLConfig instance for the specified memory address.

createback to summary
public static ParSLConfig.Buffer create(int capacity)

Returns a new ParSLConfig.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static ParSLConfig.Buffer create(long address, int capacity)

Create a ParSLConfig.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static ParSLConfig createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static ParSLConfig.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
curves_max_flatnessback to summary
public float curves_max_flatness()
Returns:float

the value of the curves_max_flatness field.

curves_max_flatnessback to summary
public ParSLConfig curves_max_flatness(float value)

Sets the specified value to the curves_max_flatness field.

flagsback to summary
public int flags()

one or more of:

FLAG_WIREFRAMEFLAG_ANNOTATIONSFLAG_SPINE_LENGTHSFLAG_RANDOM_OFFSETS
FLAG_CURVE_GUIPARSL_FLAG_DES
Annotations
@NativeType:uint32_t
flagsback to summary
public ParSLConfig flags(int value)

Sets the specified value to the flags field.

mallocback to summary
public static ParSLConfig malloc()

Returns a new ParSLConfig instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static ParSLConfig.Buffer malloc(int capacity)

Returns a new ParSLConfig.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static ParSLConfig malloc(MemoryStack stack)

Returns a new ParSLConfig instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static ParSLConfig.Buffer malloc(int capacity, MemoryStack stack)

Returns a new ParSLConfig.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static ParSLConfig mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ParSLConfig mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ParSLConfig.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static ParSLConfig.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
miter_limitback to summary
public float miter_limit()
Returns:float

the value of the miter_limit field.

miter_limitback to summary
public ParSLConfig miter_limit(float value)

Sets the specified value to the miter_limit field.

ncurves_max_flatnessback to summary
public static float ncurves_max_flatness(long struct)

Unsafe version of curves_max_flatness.

ncurves_max_flatnessback to summary
public static void ncurves_max_flatness(long struct, float value)

Unsafe version of curves_max_flatness.

nflagsback to summary
public static int nflags(long struct)

Unsafe version of flags.

nflagsback to summary
public static void nflags(long struct, int value)

Unsafe version of flags.

nmiter_limitback to summary
public static float nmiter_limit(long struct)

Unsafe version of miter_limit.

nmiter_limitback to summary
public static void nmiter_limit(long struct, float value)

Unsafe version of miter_limit.

nstreamlines_seed_spacingback to summary
public static float nstreamlines_seed_spacing(long struct)

Unsafe version of streamlines_seed_spacing.

nstreamlines_seed_spacingback to summary
public static void nstreamlines_seed_spacing(long struct, float value)

Unsafe version of streamlines_seed_spacing.

nstreamlines_seed_viewportback to summary
public static ParSLViewport nstreamlines_seed_viewport(long struct)

Unsafe version of streamlines_seed_viewport.

nstreamlines_seed_viewportback to summary
public static void nstreamlines_seed_viewport(long struct, ParSLViewport value)

Unsafe version of streamlines_seed_viewport.

nthicknessback to summary
public static float nthickness(long struct)

Unsafe version of thickness.

nthicknessback to summary
public static void nthickness(long struct, float value)

Unsafe version of thickness.

nu_modeback to summary
public static int nu_mode(long struct)

Unsafe version of u_mode.

nu_modeback to summary
public static void nu_mode(long struct, int value)

Unsafe version of u_mode.

setback to summary
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.

setback to summary
public ParSLConfig set(ParSLConfig src)

Copies the specified struct data to this struct.

Parameters
src:ParSLConfig

the source struct

Returns:ParSLConfig

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
streamlines_seed_spacingback to summary
public float streamlines_seed_spacing()
Returns:float

the value of the streamlines_seed_spacing field.

streamlines_seed_spacingback to summary
public ParSLConfig streamlines_seed_spacing(float value)

Sets the specified value to the streamlines_seed_spacing field.

streamlines_seed_viewportback to summary
public ParSLViewport streamlines_seed_viewport()
Returns:ParSLViewport

a ParSLViewport view of the streamlines_seed_viewport field.

Annotations
@NativeType:parsl_viewport
streamlines_seed_viewportback to summary
public ParSLConfig streamlines_seed_viewport(ParSLViewport value)

Copies the specified ParSLViewport to the streamlines_seed_viewport field.

streamlines_seed_viewportback to summary
public ParSLConfig streamlines_seed_viewport(Consumer<ParSLViewport> consumer)

Passes the streamlines_seed_viewport field to the specified Consumer.

thicknessback to summary
public float thickness()
Returns:float

the value of the thickness field.

thicknessback to summary
public ParSLConfig thickness(float value)

Sets the specified value to the thickness field.

u_modeback to summary
public int u_mode()

one of:

ParStreamlines#PAR_U_MODE_NORMALIZED_DISTANCEParStreamlines#PAR_U_MODE_DISTANCEParStreamlines#PAR_U_MODE_SEGMENT_INDEX
ParStreamlines#PAR_U_MODE_SEGMENT_FRACTION
u_modeback to summary
public ParSLConfig u_mode(int value)

Sets the specified value to the u_mode field.

org.lwjgl.util.par back to summary

public Class ParSLConfig.Buffer

extends StructBuffer<ParSLConfig, ParSLConfig.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of ParSLConfig structs.

Field Summary

Modifier and TypeField and Description
private static final ParSLConfig

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new ParSLConfig.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the value of the curves_max_flatness field.
curves_max_flatness
()

public ParSLConfig.Buffer
curves_max_flatness(float value)

Sets the specified value to the curves_max_flatness field.

public int

Returns:

the value of the ParSLConfig#flags field.
flags
()

public ParSLConfig.Buffer
flags(int value)

Sets the specified value to the ParSLConfig#flags field.

protected ParSLConfig
public float

Returns:

the value of the miter_limit field.
miter_limit
()

public ParSLConfig.Buffer
miter_limit(float value)

Sets the specified value to the miter_limit field.

protected ParSLConfig.Buffer
public float

Returns:

the value of the streamlines_seed_spacing field.
streamlines_seed_spacing
()

public ParSLConfig.Buffer
streamlines_seed_spacing(float value)

Sets the specified value to the streamlines_seed_spacing field.

public ParSLViewport

Returns:

a ParSLViewport view of the streamlines_seed_viewport field.
streamlines_seed_viewport
()

public ParSLConfig.Buffer
streamlines_seed_viewport(ParSLViewport value)

Copies the specified ParSLViewport to the streamlines_seed_viewport field.

public ParSLConfig.Buffer
streamlines_seed_viewport(Consumer<ParSLViewport> consumer)

Passes the streamlines_seed_viewport field to the specified Consumer.

public float

Returns:

the value of the thickness field.
thickness
()

public ParSLConfig.Buffer
thickness(float value)

Sets the specified value to the thickness field.

public int

Returns:

the value of the ParSLConfig#u_mode field.
u_mode
()

public ParSLConfig.Buffer
u_mode(int value)

Sets the specified value to the ParSLConfig#u_mode field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final ParSLConfig ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new ParSLConfig.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by ParSLConfig#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

curves_max_flatnessback to summary
public float curves_max_flatness()
Returns:float

the value of the curves_max_flatness field.

curves_max_flatnessback to summary
public ParSLConfig.Buffer curves_max_flatness(float value)

Sets the specified value to the curves_max_flatness field.

flagsback to summary
public int flags()
Returns:int

the value of the ParSLConfig#flags field.

Annotations
@NativeType:uint32_t
flagsback to summary
public ParSLConfig.Buffer flags(int value)

Sets the specified value to the ParSLConfig#flags field.

getElementFactoryback to summary
protected ParSLConfig getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
miter_limitback to summary
public float miter_limit()
Returns:float

the value of the miter_limit field.

miter_limitback to summary
public ParSLConfig.Buffer miter_limit(float value)

Sets the specified value to the miter_limit field.

selfback to summary
protected ParSLConfig.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
streamlines_seed_spacingback to summary
public float streamlines_seed_spacing()
Returns:float

the value of the streamlines_seed_spacing field.

streamlines_seed_spacingback to summary
public ParSLConfig.Buffer streamlines_seed_spacing(float value)

Sets the specified value to the streamlines_seed_spacing field.

streamlines_seed_viewportback to summary
public ParSLViewport streamlines_seed_viewport()
Returns:ParSLViewport

a ParSLViewport view of the streamlines_seed_viewport field.

Annotations
@NativeType:parsl_viewport
streamlines_seed_viewportback to summary
public ParSLConfig.Buffer streamlines_seed_viewport(ParSLViewport value)

Copies the specified ParSLViewport to the streamlines_seed_viewport field.

streamlines_seed_viewportback to summary
public ParSLConfig.Buffer streamlines_seed_viewport(Consumer<ParSLViewport> consumer)

Passes the streamlines_seed_viewport field to the specified Consumer.

thicknessback to summary
public float thickness()
Returns:float

the value of the thickness field.

thicknessback to summary
public ParSLConfig.Buffer thickness(float value)

Sets the specified value to the thickness field.

u_modeback to summary
public int u_mode()
Returns:int

the value of the ParSLConfig#u_mode field.

u_modeback to summary
public ParSLConfig.Buffer u_mode(int value)

Sets the specified value to the ParSLConfig#u_mode field.