diff options
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 |
