aboutsummaryrefslogtreecommitdiff
path: root/examples/oculus_glfw_sample/rlgl.h
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2016-06-14 19:16:24 +0200
committervictorfisac <victorfisac@gmail.com>2016-06-14 19:16:24 +0200
commitc9c1263e6fda9926f29ec8417ca48a518dfc97e1 (patch)
treed6bc52be96352b3ca8b9d79dbe991619f4335f87 /examples/oculus_glfw_sample/rlgl.h
parent6a2bbae5216e66e5581d697998efe135ad826c50 (diff)
parentd1a5374ac42e054ca65793f7358fc21bbcf393b9 (diff)
downloadraylib-c9c1263e6fda9926f29ec8417ca48a518dfc97e1.tar.gz
raylib-c9c1263e6fda9926f29ec8417ca48a518dfc97e1.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'examples/oculus_glfw_sample/rlgl.h')
-rw-r--r--examples/oculus_glfw_sample/rlgl.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/oculus_glfw_sample/rlgl.h b/examples/oculus_glfw_sample/rlgl.h
index 9c25f710..93e155b7 100644
--- a/examples/oculus_glfw_sample/rlgl.h
+++ b/examples/oculus_glfw_sample/rlgl.h
@@ -48,7 +48,7 @@
// Choose opengl version here or just define it at compile time: -DGRAPHICS_API_OPENGL_33
//#define GRAPHICS_API_OPENGL_11 // Only available on PLATFORM_DESKTOP
-//#define GRAPHICS_API_OPENGL_33 // Only available on PLATFORM_DESKTOP
+//#define GRAPHICS_API_OPENGL_33 // Only available on PLATFORM_DESKTOP or Oculus Rift CV1
//#define GRAPHICS_API_OPENGL_ES2 // Only available on PLATFORM_ANDROID or PLATFORM_RPI or PLATFORM_WEB
// Security check in case no GRAPHICS_API_OPENGL_* defined
@@ -296,6 +296,7 @@ void rlglInit(void); // Initialize rlgl (shaders, VAO
void rlglClose(void); // De-init rlgl
void rlglDraw(void); // Draw VAO/VBO
void rlglInitGraphics(int offsetX, int offsetY, int width, int height); // Initialize Graphics (OpenGL stuff)
+void rlglLoadExtensions(void *loader); // Load OpenGL extensions
unsigned int rlglLoadTexture(void *data, int width, int height, int textureFormat, int mipmapCount); // Load texture in GPU
RenderTexture2D rlglLoadRenderTexture(int width, int height); // Load a texture to be used for rendering (fbo with color and depth attachments)
@@ -346,6 +347,15 @@ void DestroyLight(Light light); // Destroy a
void TraceLog(int msgType, const char *text, ...);
#endif
+#if defined(RLGL_OCULUS_SUPPORT)
+void InitOculusDevice(void); // Init Oculus Rift device
+void CloseOculusDevice(void); // Close Oculus Rift device
+void UpdateOculusTracking(void); // Update Oculus Rift tracking (position and orientation)
+void SetOculusMatrix(int eye); // Set internal projection and modelview matrix depending on eyes tracking data
+void BeginOculusDrawing(void); // Begin Oculus drawing configuration
+void EndOculusDrawing(void); // End Oculus drawing process (and desktop mirror)
+#endif
+
#ifdef __cplusplus
}
#endif