Updated raylib Oculus example

This commit is contained in:
raysan5 2016-06-14 17:20:00 +02:00
parent 3ce0228206
commit 97fc266ad4

View File

@ -47,15 +47,24 @@ int main()
BeginDrawing();
ClearBackground(RAYWHITE);
BeginOculusDrawing();
for (int eye = 0; eye < 2; eye++)
{
Begin3dMode(camera);
SetOculusMatrix(eye);
DrawCube(cubePosition, 2.0f, 2.0f, 2.0f, RED);
DrawCubeWires(cubePosition, 2.0f, 2.0f, 2.0f, MAROON);
Begin3dMode(camera);
DrawCube(cubePosition, 2.0f, 2.0f, 2.0f, RED);
DrawCubeWires(cubePosition, 2.0f, 2.0f, 2.0f, MAROON);
DrawGrid(10, 1.0f);
End3dMode();
DrawGrid(10, 1.0f);
End3dMode();
}
EndOculusDrawing()
EndDrawing();
//----------------------------------------------------------------------------------