Class DistortionCoordinates

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

public class DistortionCoordinates extends org.lwjgl.system.Struct<DistortionCoordinates> implements org.lwjgl.system.NativeResource
Used to return the post-distortion UVs for each color channel.

UVs range from 0 to 1 with 0,0 in the upper left corner of the source render target. The 0,0 to 1,1 range covers a single eye.

Layout


 struct DistortionCoordinates_t {
     float rfRed()[2];
     float rfGreen()[2];
     float rfBlue()[2];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int RFRED
      The struct member offsets.
    • RFGREEN

      public static final int RFGREEN
      The struct member offsets.
    • RFBLUE

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

    • DistortionCoordinates

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