Class 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 of ParSLConfig structs.
    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.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.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • thickness

        public float thickness()
        Returns:
        the value of the thickness 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

        public ParSLViewport streamlines_seed_viewport()
        Returns:
        a ParSLViewport view of the streamlines_seed_viewport field.
      • miter_limit

        public float miter_limit()
        Returns:
        the value of the miter_limit field.
      • thickness

        public ParSLConfig.Buffer thickness​(float value)
        Sets the specified value to the thickness field.
      • curves_max_flatness

        public ParSLConfig.Buffer curves_max_flatness​(float value)
        Sets the specified value to the curves_max_flatness field.
      • streamlines_seed_spacing

        public ParSLConfig.Buffer streamlines_seed_spacing​(float value)
        Sets the specified value to the streamlines_seed_spacing field.
      • streamlines_seed_viewport

        public ParSLConfig.Buffer streamlines_seed_viewport​(java.util.function.Consumer<ParSLViewport> consumer)
        Passes the streamlines_seed_viewport field to the specified Consumer.
      • miter_limit

        public ParSLConfig.Buffer miter_limit​(float value)
        Sets the specified value to the miter_limit field.