Improving Oculus Rift example...
Under design... looking for the easiest and most comprehensive way for the user to use VR...
This commit is contained in:
parent
9fdf4420d5
commit
24c9b1f717
1 changed files with 40 additions and 25 deletions
|
|
@ -572,6 +572,7 @@ void EndTextureMode(void); // Ends drawing to r
|
|||
Ray GetMouseRay(Vector2 mousePosition, Camera camera); // Returns a ray trace from mouse position
|
||||
Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Returns the screen space position from a 3d world space position
|
||||
Matrix GetCameraMatrix(Camera camera); // Returns camera transform matrix (view matrix)
|
||||
void DrawDefaultBuffers(void); // Update and draw default buffers vertex data (stored dynamically in frame)
|
||||
|
||||
void SetTargetFPS(int fps); // Set target FPS (maximum)
|
||||
float GetFPS(void); // Returns current FPS
|
||||
|
|
@ -853,7 +854,7 @@ void DestroyLight(Light light); // Destroy a
|
|||
void InitOculusDevice(void); // Init Oculus Rift device
|
||||
void CloseOculusDevice(void); // Close Oculus Rift device
|
||||
void UpdateOculusTracking(void); // Update Oculus Rift tracking (position and orientation)
|
||||
void SetOculusMatrix(int eye); // Set internal projection and modelview matrix depending on eyes tracking data
|
||||
void SetOculusView(int eye); // Set internal projection and modelview matrix depending on eyes tracking data
|
||||
void BeginOculusDrawing(void); // Begin Oculus drawing configuration
|
||||
void EndOculusDrawing(void); // End Oculus drawing process (and desktop mirror)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue