Class ParOctasphereConfig.Buffer

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

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

    • Buffer Link icon

      public Buffer(ByteBuffer container)
      Creates a new ParOctasphereConfig.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 ParOctasphereConfig.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer Link icon

      public Buffer(long address, int cap)
  • Method Details Link icon

    • corner_radius Link icon

      public float corner_radius()
      Returns:
      the value of the corner_radius field.
    • width Link icon

      public float width()
      Returns:
      the value of the width field.
    • height Link icon

      public float height()
      Returns:
      the value of the height field.
    • depth Link icon

      public float depth()
      Returns:
      the value of the depth field.
    • num_subdivisions Link icon

      public int num_subdivisions()
      Returns:
      the value of the num_subdivisions field.
    • uv_mode Link icon

      public int uv_mode()
      Returns:
      the value of the uv_mode field.
    • normals_mode Link icon

      public int normals_mode()
      Returns:
      the value of the normals_mode field.
    • corner_radius Link icon

      public ParOctasphereConfig.Buffer corner_radius(float value)
      Sets the specified value to the corner_radius field.
    • width Link icon

      public ParOctasphereConfig.Buffer width(float value)
      Sets the specified value to the width field.
    • height Link icon

      public ParOctasphereConfig.Buffer height(float value)
      Sets the specified value to the height field.
    • depth Link icon

      public ParOctasphereConfig.Buffer depth(float value)
      Sets the specified value to the depth field.
    • num_subdivisions Link icon

      public ParOctasphereConfig.Buffer num_subdivisions(int value)
      Sets the specified value to the num_subdivisions field.
    • uv_mode Link icon

      public ParOctasphereConfig.Buffer uv_mode(int value)
      Sets the specified value to the uv_mode field.
    • normals_mode Link icon

      public ParOctasphereConfig.Buffer normals_mode(int value)
      Sets the specified value to the normals_mode field.