diff options
| author | Ray <[email protected]> | 2017-10-20 14:09:09 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-10-20 14:09:09 +0200 |
| commit | 7447deed40f1deabee659155a30b2d6aa454dafd (patch) | |
| tree | b63cb5b7bc1d850eff4697b2d1d04478ab800ae9 /examples/web/core | |
| parent | 1ad4b20e003468434b4e72317c26d04eb8f239ee (diff) | |
| download | raylib.com-7447deed40f1deabee659155a30b2d6aa454dafd.tar.gz raylib.com-7447deed40f1deabee659155a30b2d6aa454dafd.zip | |
Updated examples for web
Diffstat (limited to 'examples/web/core')
| -rw-r--r-- | examples/web/core/core_3d_camera_free.c | 3 | ||||
| -rw-r--r-- | examples/web/core/core_vr_simulator.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/web/core/core_3d_camera_free.c b/examples/web/core/core_3d_camera_free.c index c8b634f..ad3ad99 100644 --- a/examples/web/core/core_3d_camera_free.c +++ b/examples/web/core/core_3d_camera_free.c @@ -25,7 +25,6 @@ int screenHeight = 450; Camera camera; Vector3 cubePosition = { 0.0f, 0.0f, 0.0f }; - //---------------------------------------------------------------------------------- // Module Functions Declaration //---------------------------------------------------------------------------------- @@ -76,7 +75,7 @@ void UpdateDrawFrame(void) { // Update //---------------------------------------------------------------------------------- - UpdateCamera(&camera); // Update internal camera and our camera + UpdateCamera(&camera); // Update internal camera and our camera //---------------------------------------------------------------------------------- // Draw diff --git a/examples/web/core/core_vr_simulator.c b/examples/web/core/core_vr_simulator.c index 3a3b8dd..fcfd320 100644 --- a/examples/web/core/core_vr_simulator.c +++ b/examples/web/core/core_vr_simulator.c @@ -41,8 +41,8 @@ int main() //-------------------------------------------------------------------------------------- InitWindow(screenWidth, screenHeight, "raylib [core] example - oculus rift"); - // NOTE: If device is not available, it fallbacks to default device (simulator) - InitVrSimulator(HMD_OCULUS_RIFT_CV1); // Init VR simulator (Oculus Rift CV1 parameters) + // Init VR simulator (Oculus Rift CV1 parameters) + InitVrSimulator(GetVrDeviceInfo(HMD_OCULUS_RIFT_CV1)); // Define the camera to look into our 3d world camera.position = (Vector3){ 5.0f, 5.0f, 5.0f }; // Camera position |
