Package org.lwjgl.util.par
Class ParSLConfig
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.par.ParSLConfig
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ParSLConfig extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceImmutable configuration for a streamlines context.Layout
struct parsl_config { float thickness; uint32_tflags(); intu_mode(); float curves_max_flatness; float streamlines_seed_spacing;parsl_viewportstreamlines_seed_viewport; float miter_limit; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParSLConfig.BufferAn array ofParSLConfigstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCURVES_MAX_FLATNESS
FLAGS
MITER_LIMITThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTREAMLINES_SEED_SPACING
STREAMLINES_SEED_VIEWPORT
THICKNESS
U_MODEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description ParSLConfig(java.nio.ByteBuffer container)Creates aParSLConfiginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ParSLConfigcalloc()Returns a newParSLConfiginstance allocated withmemCalloc.static ParSLConfig.Buffercalloc(int capacity)Returns a newParSLConfig.Bufferinstance allocated withmemCalloc.static ParSLConfig.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newParSLConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLConfigcalloc(org.lwjgl.system.MemoryStack stack)Returns a newParSLConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLConfigcallocStack()Deprecated.static ParSLConfig.BuffercallocStack(int capacity)Deprecated.static ParSLConfig.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ParSLConfigcallocStack(org.lwjgl.system.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 ParSLConfigcreateSafe(long address)static ParSLConfig.BuffercreateSafe(long address, int capacity)floatcurves_max_flatness()ParSLConfigcurves_max_flatness(float value)Sets the specified value to thecurves_max_flatnessfield.intflags()ParSLConfigflags(int value)Sets the specified value to theflags()field.static ParSLConfigmalloc()Returns a newParSLConfiginstance allocated withmemAlloc.static ParSLConfig.Buffermalloc(int capacity)Returns a newParSLConfig.Bufferinstance allocated withmemAlloc.static ParSLConfig.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newParSLConfig.Bufferinstance allocated on the specifiedMemoryStack.static ParSLConfigmalloc(org.lwjgl.system.MemoryStack stack)Returns a newParSLConfiginstance allocated on the specifiedMemoryStack.static ParSLConfigmallocStack()Deprecated.static ParSLConfig.BuffermallocStack(int capacity)Deprecated.static ParSLConfig.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ParSLConfigmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.floatmiter_limit()ParSLConfigmiter_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.ParSLConfigset(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.ParSLConfigset(ParSLConfig src)Copies the specified struct data to this struct.intsizeof()floatstreamlines_seed_spacing()ParSLConfigstreamlines_seed_spacing(float value)Sets the specified value to thestreamlines_seed_spacingfield.ParSLViewportstreamlines_seed_viewport()ParSLConfigstreamlines_seed_viewport(java.util.function.Consumer<ParSLViewport> consumer)Passes thestreamlines_seed_viewportfield to the specifiedConsumer.ParSLConfigstreamlines_seed_viewport(ParSLViewport value)Copies the specifiedParSLViewportto thestreamlines_seed_viewportfield.floatthickness()ParSLConfigthickness(float value)Sets the specified value to thethicknessfield.intu_mode()ParSLConfigu_mode(int value)Sets the specified value to theu_mode()field.
-
-
-
Constructor Detail
-
ParSLConfig
public ParSLConfig(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
thickness
public float thickness()
- Returns:
- the value of the
thicknessfield.
-
flags
public int flags()
-
u_mode
public int u_mode()
-
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
public ParSLViewport streamlines_seed_viewport()
- Returns:
- a
ParSLViewportview of thestreamlines_seed_viewportfield.
-
miter_limit
public float miter_limit()
- Returns:
- the value of the
miter_limitfield.
-
thickness
public ParSLConfig thickness(float value)
Sets the specified value to thethicknessfield.
-
flags
public ParSLConfig flags(int value)
Sets the specified value to theflags()field.
-
u_mode
public ParSLConfig u_mode(int value)
Sets the specified value to theu_mode()field.
-
curves_max_flatness
public ParSLConfig curves_max_flatness(float value)
Sets the specified value to thecurves_max_flatnessfield.
-
streamlines_seed_spacing
public ParSLConfig streamlines_seed_spacing(float value)
Sets the specified value to thestreamlines_seed_spacingfield.
-
streamlines_seed_viewport
public ParSLConfig streamlines_seed_viewport(ParSLViewport value)
Copies the specifiedParSLViewportto thestreamlines_seed_viewportfield.
-
streamlines_seed_viewport
public ParSLConfig streamlines_seed_viewport(java.util.function.Consumer<ParSLViewport> consumer)
Passes thestreamlines_seed_viewportfield to the specifiedConsumer.
-
miter_limit
public ParSLConfig miter_limit(float value)
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
public ParSLConfig set(ParSLConfig src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static ParSLConfig malloc()
Returns a newParSLConfiginstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ParSLConfig calloc()
Returns a newParSLConfiginstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ParSLConfig create()
Returns a newParSLConfiginstance allocated withBufferUtils.
-
create
public static ParSLConfig create(long address)
Returns a newParSLConfiginstance for the specified memory address.
-
createSafe
@Nullable public static ParSLConfig createSafe(long address)
-
malloc
public static ParSLConfig.Buffer malloc(int capacity)
Returns a newParSLConfig.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ParSLConfig.Buffer calloc(int capacity)
Returns a newParSLConfig.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ParSLConfig.Buffer create(int capacity)
Returns a newParSLConfig.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ParSLConfig.Buffer create(long address, int capacity)
Create aParSLConfig.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ParSLConfig.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ParSLConfig mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLConfig callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLConfig mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLConfig callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLConfig.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLConfig.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLConfig.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLConfig.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static ParSLConfig malloc(org.lwjgl.system.MemoryStack stack)
Returns a newParSLConfiginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ParSLConfig calloc(org.lwjgl.system.MemoryStack stack)
Returns a newParSLConfiginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ParSLConfig.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newParSLConfig.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ParSLConfig.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newParSLConfig.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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
public static ParSLViewport nstreamlines_seed_viewport(long struct)
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
public static void nstreamlines_seed_viewport(long struct, ParSLViewport value)Unsafe version ofstreamlines_seed_viewport.
-
nmiter_limit
public static void nmiter_limit(long struct, float value)Unsafe version ofmiter_limit.
-
-