Class ktxOrientation

All Implemented Interfaces:
Pointer

public class ktxOrientation extends Struct<ktxOrientation>

 struct ktxOrientation {
     ktxOrientationX x;
     ktxOrientationY y;
     ktxOrientationZ z;
 }
  • 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.
    • Z

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

    • ktxOrientation

      public ktxOrientation(ByteBuffer container)
      Creates a ktxOrientation 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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<ktxOrientation>
    • x

      public int x()
      Returns:
      the value of the x field.
    • y

      public int y()
      Returns:
      the value of the y field.
    • z

      public int z()
      Returns:
      the value of the z field.
    • create

      public static ktxOrientation create(long address)
      Returns a new ktxOrientation instance for the specified memory address.
    • createSafe

      public static @Nullable ktxOrientation createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static ktxOrientation.Buffer create(long address, int capacity)
      Create a ktxOrientation.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable ktxOrientation.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nx

      public static int nx(long struct)
      Unsafe version of x().
    • ny

      public static int ny(long struct)
      Unsafe version of y().
    • nz

      public static int nz(long struct)
      Unsafe version of z().