This uses a direct 3x4 matrix to map from view space to the UV coordinates. It is essentially the same thing as OVRLayerEyeFov but using a much
lower level. This is mainly to provide compatibility with specific apps. Unless the application really requires this flexibility, it is usually
better to use ovrLayerEyeFov.
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.
struct ovrLayerEyeMatrix {
ovrLayerHeader Header;
ovrTextureSwapChain ColorTexture[ovrEye_Count];
ovrRecti Viewport[ovrEye_Count];
ovrPosef RenderPose[ovrEye_Count];
ovrMatrix4f Matrix[ovrEye_Count];
double SensorSampleTime;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OVRLayerEyeMatrix.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COLORTEXTURE
The struct member offsets. |
| public static final int | HEADER
The struct member offsets. |
| public static final int | MATRIX
The struct member offsets. |
| public static final int | RENDERPOSE
The struct member offsets. |
| public static final int | SENSORSAMPLETIME
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VIEWPORT
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OVRLayerEyeMatrix(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerEyeMatrix | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRLayerEyeMatrix. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix. | |
| public static OVRLayerEyeMatrix. | |
| public PointerBuffer | |
| public long | |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix | ColorTexture(int index, long value)
Sets the specified value at the specified index of the |
| protected OVRLayerEyeMatrix | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix. | create(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerEyeMatrix. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix. | |
| public OVRLayerHeader | |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OVRLayerEyeMatrix | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OVRLayerEyeMatrix. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix | |
| public static OVRLayerEyeMatrix. | |
| public static OVRLayerEyeMatrix. | |
| public OVRMatrix4f. | Matrix()
specifies the mapping from a view-space vector to a UV coordinate on the textures given above. |
| public OVRMatrix4f | Matrix(int index)
specifies the mapping from a view-space vector to a UV coordinate on the textures given above. |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix | Matrix(int index, OVRMatrix4f value)
Copies the specified |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix | Matrix(int index, Consumer<OVRMatrix4f> consumer)
Passes the element at |
| public static PointerBuffer | |
| public static long | |
| public static void | |
| public static void | |
| public static OVRLayerHeader | |
| public static void | |
| public static OVRMatrix4f. | |
| public static OVRMatrix4f | |
| public static void | |
| public static void | |
| public static OVRPosef. | |
| public static OVRPosef | |
| public static void | |
| public static void | |
| public static double | |
| public static void | |
| public static OVRRecti. | |
| public static OVRRecti | |
| public static void | |
| public static void | |
| public OVRPosef. | RenderPose()
specifies the position and orientation of each eye view, with the position specified in meters. |
| public OVRPosef | RenderPose(int index)
specifies the position and orientation of each eye view, with the position specified in meters. |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix | RenderPose(int index, OVRPosef value)
Copies the specified |
| public OVRLayerEyeMatrix | RenderPose(Consumer<OVRPosef.
Passes the |
| public OVRLayerEyeMatrix | RenderPose(int index, Consumer<OVRPosef> consumer)
Passes the element at |
| public double | SensorSampleTime()
specifies the timestamp when the source |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix | set(OVRLayerHeader Header, PointerBuffer ColorTexture, OVRRecti.
Initializes this struct with the specified values. |
| public OVRLayerEyeMatrix | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void | |
| public OVRRecti. | |
| public OVRRecti | |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix | |
| public OVRLayerEyeMatrix |