Class ParSLPosition

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ParSLPosition extends Struct<ParSLPosition> implements NativeResource
The simple two-tuple math type used for mesh and spine vertices.

Layout


 struct parsl_position {
     float x;
     float y;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • X

      public static final int X
      The struct member offsets.
    • Y

      public static final int Y
      The struct member offsets.
  • Constructor Details

    • ParSLPosition

      public ParSLPosition(ByteBuffer container)
      Creates a ParSLPosition instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details