diff options
| author | raysan5 <raysan5@gmail.com> | 2016-07-04 18:35:50 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-07-04 18:35:50 +0200 |
| commit | 2ff2096b36d80078cbda5e61ff77d7fedeeeaeb5 (patch) | |
| tree | 808159aa95df9b2be5509d83791aa6cad4ddf6b8 /examples | |
| parent | 3fb1c446ea5cf7fe813b0809894e938232ab1738 (diff) | |
| download | raylib-2ff2096b36d80078cbda5e61ff77d7fedeeeaeb5.tar.gz raylib-2ff2096b36d80078cbda5e61ff77d7fedeeeaeb5.zip | |
Moved Oculus enable drawing to user side...
Still thinking about the best way to manage this...
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/core_oculus_rift.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/core_oculus_rift.c b/examples/core_oculus_rift.c index 131a21c2..734ba8fd 100644 --- a/examples/core_oculus_rift.c +++ b/examples/core_oculus_rift.c @@ -52,6 +52,8 @@ int main() BeginDrawing(); ClearBackground(RAYWHITE); + + if (IsOculusReady()) BeginOculusDrawing(); Begin3dMode(camera); @@ -62,6 +64,8 @@ int main() End3dMode(); + if (IsOculusReady()) EndOculusDrawing(); + DrawFPS(10, 10); EndDrawing(); |
