Class NkConvertConfig.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new NkConvertConfig.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 NkConvertConfig.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

      • global_alpha

        public float global_alpha()
        Returns the value of the global_alpha field.
      • line_AA

        public int line_AA()
        Returns the value of the line_AA field.
      • shape_AA

        public int shape_AA()
        Returns the value of the shape_AA field.
      • circle_segment_count

        public int circle_segment_count()
        Returns the value of the circle_segment_count field.
      • arc_segment_count

        public int arc_segment_count()
        Returns the value of the arc_segment_count field.
      • curve_segment_count

        public int curve_segment_count()
        Returns the value of the curve_segment_count field.
      • vertex_size

        public long vertex_size()
        Returns the value of the vertex_size field.
      • vertex_alignment

        public long vertex_alignment()
        Returns the value of the vertex_alignment field.
      • global_alpha

        public NkConvertConfig.Buffer global_alpha​(float value)
        Sets the specified value to the global_alpha field.
      • line_AA

        public NkConvertConfig.Buffer line_AA​(int value)
        Sets the specified value to the line_AA field.
      • shape_AA

        public NkConvertConfig.Buffer shape_AA​(int value)
        Sets the specified value to the shape_AA field.
      • circle_segment_count

        public NkConvertConfig.Buffer circle_segment_count​(int value)
        Sets the specified value to the circle_segment_count field.
      • arc_segment_count

        public NkConvertConfig.Buffer arc_segment_count​(int value)
        Sets the specified value to the arc_segment_count field.
      • curve_segment_count

        public NkConvertConfig.Buffer curve_segment_count​(int value)
        Sets the specified value to the curve_segment_count field.
      • vertex_size

        public NkConvertConfig.Buffer vertex_size​(long value)
        Sets the specified value to the vertex_size field.
      • vertex_alignment

        public NkConvertConfig.Buffer vertex_alignment​(long value)
        Sets the specified value to the vertex_alignment field.