Work on Oculus functionality

Trying to find the best way to integrate Oculus support into raylib,
making it easy for the user...
This commit is contained in:
raysan5
2016-06-03 18:26:59 +02:00
parent b574e105dd
commit 13bef7aa02
2 changed files with 63 additions and 5 deletions

View File

@@ -578,6 +578,12 @@ void InitWindow(int width, int height, struct android_app *state); // Init Andr
void InitWindow(int width, int height, const char *title); // Initialize Window and OpenGL Graphics
#endif
#if defined(PLATFORM_OCULUS)
void InitOculusDevice(void); // Init Oculus Rift device
void CloseOculusDevice(void); // Close Oculus Rift device
void UpdateOculusTracking(void); // Update Oculus Rift tracking (position and orientation)
#endif
void CloseWindow(void); // Close Window and Terminate Context
bool WindowShouldClose(void); // Detect if KEY_ESCAPE pressed or Close icon pressed
bool IsWindowMinimized(void); // Detect if window has been minimized (or lost focus)