mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-22 17:11:45 +00:00
Updated raylib Oculus example
This commit is contained in:
@@ -48,14 +48,23 @@ int main()
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
Begin3dMode(camera);
|
||||
BeginOculusDrawing();
|
||||
|
||||
DrawCube(cubePosition, 2.0f, 2.0f, 2.0f, RED);
|
||||
DrawCubeWires(cubePosition, 2.0f, 2.0f, 2.0f, MAROON);
|
||||
for (int eye = 0; eye < 2; eye++)
|
||||
{
|
||||
Begin3dMode(camera);
|
||||
|
||||
DrawGrid(10, 1.0f);
|
||||
SetOculusMatrix(eye);
|
||||
|
||||
End3dMode();
|
||||
DrawCube(cubePosition, 2.0f, 2.0f, 2.0f, RED);
|
||||
DrawCubeWires(cubePosition, 2.0f, 2.0f, 2.0f, MAROON);
|
||||
|
||||
DrawGrid(10, 1.0f);
|
||||
|
||||
End3dMode();
|
||||
}
|
||||
|
||||
EndOculusDrawing()
|
||||
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user