Simplify Oculus example...
...to align it with standard raylib code. Final goal would be having the same code work for every platform with no changes...
This commit is contained in:
parent
b01f5ff6a7
commit
6062201e8f
4 changed files with 16 additions and 14 deletions
|
@ -607,13 +607,14 @@ void Begin3dMode(Camera camera)
|
|||
|
||||
rlEnableDepthTest(); // Enable DEPTH_TEST for 3D
|
||||
|
||||
//if (vrEnabled) BeginVrMode();
|
||||
if (VrEnabled()) BeginOculusDrawing();
|
||||
}
|
||||
|
||||
// Ends 3D mode and returns to default 2D orthographic mode
|
||||
void End3dMode(void)
|
||||
{
|
||||
rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2)
|
||||
if (VrEnabled()) EndOculusDrawing();
|
||||
else rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2)
|
||||
|
||||
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