Package org.lwjgl.ovr

Class OVRPoseStatef

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

public class OVRPoseStatef extends org.lwjgl.system.Struct<OVRPoseStatef> implements org.lwjgl.system.NativeResource
A full pose (rigid body) configuration with first and second derivatives.

Body refers to any object for which ovrPoseStatef is providing data. It can be the HMD, Touch controller, sensor or something else. The context depends on the usage of the struct.

Layout


 struct ovrPoseStatef {
     ovrPosef ThePose();
     ovrVector3f AngularVelocity();
     ovrVector3f LinearVelocity();
     ovrVector3f AngularAcceleration();
     ovrVector3f LinearAcceleration();
     char[4];
     double TimeInSeconds();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int THEPOSE
      The struct member offsets.
    • ANGULARVELOCITY

      public static final int ANGULARVELOCITY
      The struct member offsets.
    • LINEARVELOCITY

      public static final int LINEARVELOCITY
      The struct member offsets.
    • ANGULARACCELERATION

      public static final int ANGULARACCELERATION
      The struct member offsets.
    • LINEARACCELERATION

      public static final int LINEARACCELERATION
      The struct member offsets.
    • TIMEINSECONDS

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

    • OVRPoseStatef

      public OVRPoseStatef(ByteBuffer container)
      Creates a OVRPoseStatef 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<OVRPoseStatef>
    • ThePose

      public OVRPosef ThePose()
      position and orientation
    • AngularVelocity

      public OVRVector3f AngularVelocity()
      angular velocity in radians per second
    • LinearVelocity

      public OVRVector3f LinearVelocity()
      velocity in meters per second
    • AngularAcceleration

      public OVRVector3f AngularAcceleration()
      angular acceleration in radians per second per second
    • LinearAcceleration

      public OVRVector3f LinearAcceleration()
      acceleration in meters per second per second
    • TimeInSeconds

      public double TimeInSeconds()
      absolute time that this pose refers to. See GetTimeInSeconds
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static OVRPoseStatef.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 OVRPoseStatef.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 OVRPoseStatef malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new OVRPoseStatef instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

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

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

      public static OVRPoseStatef.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new OVRPoseStatef.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
    • nThePose

      public static OVRPosef nThePose(long struct)
      Unsafe version of ThePose().
    • nAngularVelocity

      public static OVRVector3f nAngularVelocity(long struct)
      Unsafe version of AngularVelocity().
    • nLinearVelocity

      public static OVRVector3f nLinearVelocity(long struct)
      Unsafe version of LinearVelocity().
    • nAngularAcceleration

      public static OVRVector3f nAngularAcceleration(long struct)
      Unsafe version of AngularAcceleration().
    • nLinearAcceleration

      public static OVRVector3f nLinearAcceleration(long struct)
      Unsafe version of LinearAcceleration().
    • nTimeInSeconds

      public static double nTimeInSeconds(long struct)
      Unsafe version of TimeInSeconds().