mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Added simulated head-tracking on VR simulator
A simple 1st person camera... still requires some work...
This commit is contained in:
@ -891,6 +891,7 @@ RLAPI void DestroyLight(Light light); // Des
|
||||
RLAPI void InitVrDevice(int vdDevice); // Init VR device
|
||||
RLAPI void CloseVrDevice(void); // Close VR device
|
||||
RLAPI bool IsVrDeviceReady(void); // Detect if VR device (or simulator) is ready
|
||||
RLAPI bool IsVrSimulator(void); // Detect if VR simulator is running
|
||||
RLAPI void UpdateVrTracking(void); // Update VR tracking (position and orientation)
|
||||
RLAPI void ToggleVrMode(void); // Enable/Disable VR experience (device or simulator)
|
||||
|
||||
|
||||
@ -2710,6 +2710,12 @@ bool IsVrDeviceReady(void)
|
||||
return (vrDeviceReady || vrSimulator) && vrEnabled;
|
||||
}
|
||||
|
||||
// Detect if VR simulator is running
|
||||
bool IsVrSimulator(void)
|
||||
{
|
||||
return vrSimulator;
|
||||
}
|
||||
|
||||
// Enable/Disable VR experience (device or simulator)
|
||||
void ToggleVrMode(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user