Class NkConvertConfig.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<NkConvertConfig>, NativeResource, Pointer
Enclosing class:
NkConvertConfig

public static class NkConvertConfig.Buffer extends StructBuffer<NkConvertConfig,NkConvertConfig.Buffer> implements NativeResource
An array of NkConvertConfig structs.
  • Constructor Details

    • Buffer

      public Buffer(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 Details

    • 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.
    • tex_null

      public NkDrawNullTexture tex_null()
      Returns:
      a NkDrawNullTexture view of the tex_null field.
    • vertex_layout

      public NkDrawVertexLayoutElement.Buffer vertex_layout(int capacity)
      Returns:
      a NkDrawVertexLayoutElement.Buffer view of the struct array pointed to by the vertex_layout 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.
    • tex_null

      public NkConvertConfig.Buffer tex_null(NkDrawNullTexture value)
      Copies the specified NkDrawNullTexture to the tex_null field.
    • tex_null

      public NkConvertConfig.Buffer tex_null(Consumer<NkDrawNullTexture> consumer)
      Passes the tex_null field to the specified Consumer.
    • vertex_layout

      Sets the address of the specified NkDrawVertexLayoutElement.Buffer to the vertex_layout 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.