Add oculus simulator (in case device is not detected)
This commit is contained in:
parent
e913de58c7
commit
03d9583b94
3 changed files with 186 additions and 102 deletions
|
@ -607,14 +607,15 @@ void Begin3dMode(Camera camera)
|
|||
|
||||
rlEnableDepthTest(); // Enable DEPTH_TEST for 3D
|
||||
|
||||
if (VrEnabled()) BeginOculusDrawing();
|
||||
if (IsOculusReady()) BeginOculusDrawing();
|
||||
}
|
||||
|
||||
// Ends 3D mode and returns to default 2D orthographic mode
|
||||
void End3dMode(void)
|
||||
{
|
||||
if (VrEnabled()) EndOculusDrawing();
|
||||
else rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2)
|
||||
if (IsOculusReady()) EndOculusDrawing();
|
||||
|
||||
rlglDraw(); // Process internal buffers (update + draw)
|
||||
|
||||
rlMatrixMode(RL_PROJECTION); // Switch to projection matrix
|
||||
rlPopMatrix(); // Restore previous matrix (PROJECTION) from matrix stack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue