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.17 Reference Guide

VrApi_Ext.h File Reference

Functions

static ovrFrameParms *
static const ovrFrameParms *
vrapi_GetFrameParmsConst ( const ovrFrameParmsExtBase * frameParmsChain )

Function Documentation

static ovrFrameParms* vrapi_GetFrameParms ( ovrFrameParmsExtBase * frameParmsChain )
static const ovrFrameParms* vrapi_GetFrameParmsConst ( const ovrFrameParmsExtBase * frameParmsChain )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/************************************************************************************

Filename    :   VrApi_Ext.h
Content     :   VrApi extensions support
Created     :   February 3, 2016
Authors     :   Cass Everitt
Language    :   C99

Copyright   :   Copyright 2016 Oculus VR, LLC. 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
The documentation for this file was generated from the following file: Include/VrApi_Ext.h