Package org.lwjgl.ovr

Class OVRViewScaleDesc

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

public class OVRViewScaleDesc extends org.lwjgl.system.Struct<OVRViewScaleDesc> implements org.lwjgl.system.NativeResource
Contains the data necessary to properly calculate position info for various layer types.
  • HmdToEyePose is the same value-pair provided in OVREyeRenderDesc. Modifying this value is suggested only if the app is forcing monoscopic rendering and requires that all layers including quad layers show up in a monoscopic fashion.
  • HmdSpaceToWorldScaleInMeters is used to scale player motion into in-application units.

In other words, it is how big an in-application unit is in the player's physical meters. For example, if the application uses inches as its units then HmdSpaceToWorldScaleInMeters would be 0.0254. Note that if you are scaling the player in size, this must also scale. So if your application units are inches, but you're shrinking the player to half their normal size, then HmdSpaceToWorldScaleInMeters would be 0.0254*2.0.

Layout


 struct ovrViewScaleDesc {
     ovrPosef HmdToEyePose()[ovrEye_Count];
     float HmdSpaceToWorldScaleInMeters();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int HMDTOEYEPOSE
      The struct member offsets.
    • HMDSPACETOWORLDSCALEINMETERS

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

    • OVRViewScaleDesc

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