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
| static ovrFrameParms * | vrapi_GetFrameParms ( ovrFrameParmsExtBase * frameParmsChain ) |
| static const ovrFrameParms * | vrapi_GetFrameParmsConst ( const ovrFrameParmsExtBase * frameParmsChain ) |
/************************************************************************************
Filename : VrApi_Ext.h
Content : VrApi extensions support
Created : February 3, 2016
Authors : Cass Everitt
Language : C99
Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.
*************************************************************************************/
#ifndef OVR_VrApi_Ext_h
#define OVR_VrApi_Ext_h
#include "VrApi_Types.h"
#include "string.h"// for memset()
//-----------------------------------------------------------------
// Basic Ext Types
//-----------------------------------------------------------------
typedefstruct ovrFrameParmsExtBase
{
ovrStructureType Type;
OVR_VRAPI_PADDING_64_BIT( 4 );
struct ovrFrameParmsExtBase * Next;
} ovrFrameParmsExtBase;
/* ovrStructureType allocations */
staticinline ovrFrameParms * vrapi_GetFrameParms( ovrFrameParmsExtBase * frameParmsChain )
{
while ( frameParmsChain != NULL && frameParmsChain->Type != VRAPI_STRUCTURE_TYPE_FRAME_PARMS )
{
frameParmsChain = frameParmsChain->Next;
}
return (ovrFrameParms *)frameParmsChain;
}
staticinlineconst ovrFrameParms * vrapi_GetFrameParmsConst( const ovrFrameParmsExtBase * frameParmsChain )
{
while ( frameParmsChain != NULL && frameParmsChain->Type != VRAPI_STRUCTURE_TYPE_FRAME_PARMS )
{
frameParmsChain = frameParmsChain->Next;
}
return (const ovrFrameParms *)frameParmsChain;
}
#endif // OVR_VrApi_Ext_h