This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Mobile 1.22 Reference Guide

ovrFrameLayerTexture Struct Reference

A compositor layer.

Data Fields

ovrTextureSwapChain *
Because OpenGL ES does not support clampToBorder, it is the application's responsibility to make sure that all mip levels of the primary eye texture have a black border that will show up when time warp pushes the texture partially off screen.
ovrTextureSwapChain *
int
Index to the texture from the set that should be displayed.
ovrMatrix4f
Points on the screen are mapped by a distortion correction function into ( TanX, TanY, -1, 1 ) vectors that are transformed by this matrix to get ( S, T, Q, _ ) vectors that are looked up with texture2dproj() to get texels.
ovrRectf
Only texels within this range should be drawn.
ovrRigidBodyPosef
The tracking state for which ModelViewMatrix is correct.
unsigned char
Pad ( )
parameter.

Public Member Functions

Detailed Description

Note:
Any layer textures that are dynamic must be triple buffered.
Deprecated
The vrapi_SubmitFrame2 path with flexible layer types should be used instead.

Field Documentation

ovrTextureSwapChain* ovrFrameLayerTexture::ColorTextureSwapChain ( )
Because OpenGL ES does not support clampToBorder, it is the application's responsibility to make sure that all mip levels of the primary eye texture have a black border that will show up when time warp pushes the texture partially off screen.
ovrTextureSwapChain* ovrFrameLayerTexture::DepthTextureSwapChain ( )
Deprecated
The depth texture is optional for positional time warp.
int ovrFrameLayerTexture::TextureSwapChainIndex ( )
Index to the texture from the set that should be displayed.
ovrMatrix4f ovrFrameLayerTexture::TexCoordsFromTanAngles ( )
Points on the screen are mapped by a distortion correction function into ( TanX, TanY, -1, 1 ) vectors that are transformed by this matrix to get ( S, T, Q, _ ) vectors that are looked up with texture2dproj() to get texels.
ovrRectf ovrFrameLayerTexture::TextureRect ( )
Only texels within this range should be drawn.
This is a sub-rectangle of the [(0,0)-(1,1)] texture coordinate range.
ovrRigidBodyPosef ovrFrameLayerTexture::HeadPose ( )
The tracking state for which ModelViewMatrix is correct.
It is ok to update the orientation for each eye, which can help minimize black edge pull-in, but the position must remain the same for both eyes, or the position would seem to judder "backwards in time" if a frame is dropped.
unsigned char ovrFrameLayerTexture::Pad[8] ( )
parameter.

Member Function Documentation

ovrFrameLayerTexture::OVR_VRAPI_PADDING ( 4 )
The documentation for this struct was generated from the following file: Include/VrApi_Types.h