Package org.lwjgl.ovr

Class OVRTextureLayoutOctilinear

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

public class OVRTextureLayoutOctilinear extends org.lwjgl.system.Struct<OVRTextureLayoutOctilinear> implements org.lwjgl.system.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

Layout


 struct ovrTextureLayoutOctilinear {
     float WarpLeft();
     float WarpRight();
     float WarpUp();
     float WarpDown();
     float SizeLeft();
     float SizeRight();
     float SizeUp();
     float SizeDown();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int WARPLEFT
      The struct member offsets.
    • WARPRIGHT

      public static final int WARPRIGHT
      The struct member offsets.
    • WARPUP

      public static final int WARPUP
      The struct member offsets.
    • WARPDOWN

      public static final int WARPDOWN
      The struct member offsets.
    • SIZELEFT

      public static final int SIZELEFT
      The struct member offsets.
    • SIZERIGHT

      public static final int SIZERIGHT
      The struct member offsets.
    • SIZEUP

      public static final int SIZEUP
      The struct member offsets.
    • SIZEDOWN

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

    • OVRTextureLayoutOctilinear

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