Package org.lwjgl.ovr

Class OVRPosef

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRPosef>
org.lwjgl.ovr.OVRPosef
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class OVRPosef extends org.lwjgl.system.Struct<OVRPosef> implements org.lwjgl.system.NativeResource
Position and orientation together.

Layout


 struct ovrPosef {
     ovrQuatf Orientation();
     ovrVector3f Position();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ORIENTATION
      The struct member offsets.
    • POSITION

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

    • OVRPosef

      public OVRPosef(ByteBuffer container)
      Creates a OVRPosef 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<OVRPosef>
    • Orientation

      public OVRQuatf Orientation()
      the pose orientation
    • Position

      public OVRVector3f Position()
      the pose position
    • Orientation

      public OVRPosef Orientation(OVRQuatf value)
      Copies the specified OVRQuatf to the Orientation() field.
    • Orientation

      public OVRPosef Orientation(Consumer<OVRQuatf> consumer)
      Passes the Orientation() field to the specified Consumer.
    • Position

      public OVRPosef Position(OVRVector3f value)
      Copies the specified OVRVector3f to the Position() field.
    • Position

      public OVRPosef Position(Consumer<OVRVector3f> consumer)
      Passes the Position() field to the specified Consumer.
    • set

      public OVRPosef set(OVRQuatf Orientation, OVRVector3f Position)
      Initializes this struct with the specified values.
    • set

      public OVRPosef set(OVRPosef src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static OVRPosef malloc()
      Returns a new OVRPosef instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static OVRPosef calloc()
      Returns a new OVRPosef instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static OVRPosef create()
      Returns a new OVRPosef instance allocated with BufferUtils.
    • create

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

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

      public static OVRPosef.Buffer malloc(int capacity)
      Returns a new OVRPosef.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static OVRPosef.Buffer calloc(int capacity)
      Returns a new OVRPosef.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static OVRPosef.Buffer create(int capacity)
      Returns a new OVRPosef.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

      @Deprecated public static OVRPosef mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRPosef callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static OVRPosef mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRPosef callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static OVRPosef.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRPosef.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static OVRPosef.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static OVRPosef.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

      public static OVRPosef malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new OVRPosef instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static OVRPosef calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new OVRPosef instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static OVRPosef.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new OVRPosef.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static OVRPosef.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new OVRPosef.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nOrientation

      public static OVRQuatf nOrientation(long struct)
      Unsafe version of Orientation().
    • nPosition

      public static OVRVector3f nPosition(long struct)
      Unsafe version of Position().
    • nOrientation

      public static void nOrientation(long struct, OVRQuatf value)
      Unsafe version of Orientation.
    • nPosition

      public static void nPosition(long struct, OVRVector3f value)
      Unsafe version of Position.