Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR_CAPI_GL.h
Go to the documentation of this file.
1 /************************************************************************************
2 
3 Filename : OVR_CAPI_GL.h
4 Content : GL specific structures used by the CAPI interface.
5 Created : November 7, 2013
6 Authors : Lee Cooper
7 
8 Copyright : Copyright 2013 Oculus VR, Inc. All Rights reserved.
9 
10 Use of this software is subject to the terms of the Oculus Inc license
11 agreement provided at the time of installation or download, or which
12 otherwise accompanies this software in either electronic or hard copy form.
13 
14 ************************************************************************************/
15 #ifndef OVR_CAPI_GL_h
16 #define OVR_CAPI_GL_h
17 
18 #include "OVR_CAPI.h"
19 
20 //-----------------------------------------------------------------------------------
21 // ***** GL Specific
22 
23 #if defined(OVR_OS_WIN32)
24  #include <Windows.h>
25  #include <GL/gl.h>
26  #include <GL/glext.h>
27  #include <GL/wglext.h>
28 #elif defined(OVR_OS_MAC)
29  #include <OpenGL/gl3.h>
30  #include <OpenGL/gl3ext.h>
31  #include <OpenGL/OpenGL.h>
32 #else
33  #include <GL/gl.h>
34  #include <GL/glext.h>
35  #include <GL/glx.h>
36 #endif
37 
38 
39 // Used to configure slave GL rendering (i.e. for devices created externally).
40 typedef struct ovrGLConfigData_s
41 {
42  // General device settings.
44 
45 #if defined(OVR_OS_WIN32)
46  HWND Window;
47 #elif defined(OVR_OS_LINUX)
48  Display* Disp;
49  Window Win;
50 #endif
52 
54 {
57 };
58 
59 // Used to pass GL eye texture data to ovrHmd_EndFrame.
60 typedef struct ovrGLTextureData_s
61 {
62  // General device settings.
64  GLuint TexId;
66 
67 typedef union ovrGLTexture_s
68 {
71 } ovrGLTexture;
72 
73 #endif // OVR_CAPI_GL_h
struct ovrGLConfigData_s ovrGLConfigData
ovrGLTextureData OGL
Definition: OVR_CAPI_GL.h:70
ovrTexture Texture
Definition: OVR_CAPI_GL.h:69
union ovrGLTexture_s ovrGLTexture
ovrTextureHeader Header
Definition: OVR_CAPI_GL.h:63
ovrRenderAPIConfig Config
Definition: OVR_CAPI_GL.h:55
ovrGLConfigData OGL
Definition: OVR_CAPI_GL.h:56
ovrRenderAPIConfigHeader Header
Definition: OVR_CAPI_GL.h:43
struct ovrGLTextureData_s ovrGLTextureData