Package org.lwjgl.ovr

Class OVRVector2i

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class OVRVector2i extends Struct<OVRVector2i> implements NativeResource
A 2D vector with integer components.

Layout


 struct ovrVector2i {
     int x();
     int 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

    • OVRVector2i

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