Package org.lwjgl.util.par
Class ParSLConfig.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<ParSLConfig,ParSLConfig.Buffer>
-
- org.lwjgl.util.par.ParSLConfig.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<ParSLConfig>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- ParSLConfig
public static class ParSLConfig.Buffer extends org.lwjgl.system.StructBuffer<ParSLConfig,ParSLConfig.Buffer> implements org.lwjgl.system.NativeResource
An array ofParSLConfig
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
curves_max_flatness()
Returns the value of thecurves_max_flatness
field.ParSLConfig.Buffer
curves_max_flatness(float value)
Sets the specified value to thecurves_max_flatness
field.int
flags()
Returns the value of theflags
field.ParSLConfig.Buffer
flags(int value)
Sets the specified value to theflags
field.float
miter_limit()
Returns the value of themiter_limit
field.ParSLConfig.Buffer
miter_limit(float value)
Sets the specified value to themiter_limit
field.float
streamlines_seed_spacing()
Returns the value of thestreamlines_seed_spacing
field.ParSLConfig.Buffer
streamlines_seed_spacing(float value)
Sets the specified value to thestreamlines_seed_spacing
field.ParSLViewport
streamlines_seed_viewport()
Returns aParSLViewport
view of thestreamlines_seed_viewport
field.ParSLConfig.Buffer
streamlines_seed_viewport(java.util.function.Consumer<ParSLViewport> consumer)
Passes thestreamlines_seed_viewport
field to the specifiedConsumer
.ParSLConfig.Buffer
streamlines_seed_viewport(ParSLViewport value)
Copies the specifiedParSLViewport
to thestreamlines_seed_viewport
field.float
thickness()
Returns the value of thethickness
field.ParSLConfig.Buffer
thickness(float value)
Sets the specified value to thethickness
field.int
u_mode()
Returns the value of theu_mode
field.ParSLConfig.Buffer
u_mode(int value)
Sets the specified value to theu_mode
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newParSLConfig.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 byParSLConfig.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
thickness
public float thickness()
Returns the value of thethickness
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
u_mode
public int u_mode()
Returns the value of theu_mode
field.
-
curves_max_flatness
public float curves_max_flatness()
Returns the value of thecurves_max_flatness
field.
-
streamlines_seed_spacing
public float streamlines_seed_spacing()
Returns the value of thestreamlines_seed_spacing
field.
-
streamlines_seed_viewport
public ParSLViewport streamlines_seed_viewport()
Returns aParSLViewport
view of thestreamlines_seed_viewport
field.
-
miter_limit
public float miter_limit()
Returns the value of themiter_limit
field.
-
thickness
public ParSLConfig.Buffer thickness(float value)
Sets the specified value to thethickness
field.
-
flags
public ParSLConfig.Buffer flags(int value)
Sets the specified value to theflags
field.
-
u_mode
public ParSLConfig.Buffer u_mode(int value)
Sets the specified value to theu_mode
field.
-
curves_max_flatness
public ParSLConfig.Buffer curves_max_flatness(float value)
Sets the specified value to thecurves_max_flatness
field.
-
streamlines_seed_spacing
public ParSLConfig.Buffer streamlines_seed_spacing(float value)
Sets the specified value to thestreamlines_seed_spacing
field.
-
streamlines_seed_viewport
public ParSLConfig.Buffer streamlines_seed_viewport(ParSLViewport value)
Copies the specifiedParSLViewport
to thestreamlines_seed_viewport
field.
-
streamlines_seed_viewport
public ParSLConfig.Buffer streamlines_seed_viewport(java.util.function.Consumer<ParSLViewport> consumer)
Passes thestreamlines_seed_viewport
field to the specifiedConsumer
.
-
miter_limit
public ParSLConfig.Buffer miter_limit(float value)
Sets the specified value to themiter_limit
field.
-
-