Package org.lwjgl.ovr

Class OVRTextureLayoutOctilinear

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

    public class OVRTextureLayoutOctilinear
    extends Struct
    implements NativeResource
    Multiresolution descriptor for Octilinear.

    Usage of this layer must be successfully enabled via EnableExtension before it can be used.

    Size of W quadrants:

    
     SizeLeft + SizeRight <= Viewport.Size.w
     SizeUp   + sizeDown  <= Viewport.Size.h
     
     Clip space (0,0) is located at Viewport.Pos + (SizeLeft,SizeUp) where
     Viewport is given in the layer description.
     
     Viewport Top left
     +-----------------------------------------------------+
     |                        ^                       |    |
     |                        |                       |    |
     |           0          SizeUp         1          |    |
     |                        |                       |<--Portion of viewport
     |                        |                       |   determined by sizes
     |                        |                       |    |
     |<--------SizeLeft-------+-------SizeRight------>|    |
     |                        |                       |    |
     |                        |                       |    |
     |           2         SizeDown        3          |    |
     |                        |                       |    |
     |                        |                       |    |
     |                        v                       |    |
     +------------------------------------------------+    |
     |                                                     |
     +-----------------------------------------------------+
                                                           Viewport bottom right
     
     For example, when rendering quadrant 0 its scissor rectangle will be
     
      Top    = 0
      Left   = 0
      Right  = SizeLeft
      Bottom = SizeUp
     
     and the scissor rectangle for quadrant 1 will be:
     
      Top    = 0
      Left   = SizeLeft
      Right  = SizeLeft + SizeRight
      Bottom = SizeUp

    Member documentation

    • WarpLeft – left W warping
    • WarpRight – right W warping
    • WarpUp – up W warping
    • WarpDown – down W warping
    • SizeLeft – left W quadrant size
    • SizeRight – right W quadrant size
    • SizeUp – up W quadrant size
    • SizeDown – down W quadrant size

    Layout

    
     struct ovrTextureLayoutOctilinear {
         float WarpLeft;
         float WarpRight;
         float WarpUp;
         float WarpDown;
         float SizeLeft;
         float SizeRight;
         float SizeUp;
         float SizeDown;
     }