From 7447deed40f1deabee659155a30b2d6aa454dafd Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 20 Oct 2017 14:09:09 +0200 Subject: Updated examples for web --- examples/web/core/core_3d_camera_free.c | 3 +-- examples/web/core/core_vr_simulator.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/web/core') 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 -- cgit v1.2.3