Package org.lwjgl.ovr

Class OVREyeRenderDesc

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

    public class OVREyeRenderDesc
    extends Struct
    implements NativeResource
    rendering information for each eye. Computed by either GetRenderDesc based on the specified FOV. Note that the rendering viewport is not included here as it can be specified separately and modified per frame by passing different viewport values in the layer structure.

    Member documentation

    • Eye – the eye index this instance corresponds to. One of:
    • Fov – the field of view
    • DistortedViewport – distortion viewport
    • PixelsPerTanAngleAtCenter – wow many display pixels will fit in tan(angle) = 1
    • HmdToEyePose – transform of eye from the HMD center, in meters


     struct ovrEyeRenderDesc {
         ovrEyeType Eye;
         ovrFovPort Fov;
         ovrRecti DistortedViewport;
         ovrVector2f PixelsPerTanAngleAtCenter;
         ovrPosef HmdToEyePose;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • OVREyeRenderDesc

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