Package org.lwjgl.ovr

Class OVRLayerEyeFovDepth

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class OVRLayerEyeFovDepth
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Describes a layer that specifies a monoscopic or stereoscopic view, with depth textures in addition to color textures. This is typically used to support positional time warp. This struct is the same as OVRLayerEyeFov, but with the addition of DepthTexture and ProjectionDesc.

    ProjectionDesc can be created using TimewarpProjectionDesc_FromProjection.

    Three options exist with respect to mono/stereo texture usage:

    • ColorTexture[0] and ColorTexture[1] contain the left and right stereo renderings, respectively. Viewport[0] and Viewport[1] refer to ColorTexture[0] and ColorTexture[1], respectively.
    • ColorTexture[0] contains both the left and right renderings, ColorTexture[1] is NULL, and Viewport[0] and Viewport[1] refer to sub-rects with ColorTexture[0].
    • ColorTexture[0] contains a single monoscopic rendering, and Viewport[0] and Viewport[1] both refer to that rendering.

    Layout

    
     struct ovrLayerEyeFovDepth {
         ovrLayerHeader Header();
         ovrTextureSwapChain ColorTexture()[ovrEye_Count];
         ovrRecti Viewport()[ovrEye_Count];
         ovrFovPort Fov()[ovrEye_Count];
         ovrPosef RenderPose()[ovrEye_Count];
         double SensorSampleTime();
         ovrTextureSwapChain DepthTexture()[ovrEye_Count];
         ovrTimewarpProjectionDesc ProjectionDesc();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HEADER, COLORTEXTURE, VIEWPORT, FOV, RENDERPOSE, SENSORSAMPLETIME, DEPTHTEXTURE, PROJECTIONDESC

        The struct member offsets.
    • Constructor Detail

      • OVRLayerEyeFovDepth

        public OVRLayerEyeFovDepth​(java.nio.ByteBuffer container)
        Creates a OVRLayerEyeFovDepth 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.