Updated raylib Oculus example
This commit is contained in:
parent
3ce0228206
commit
97fc266ad4
1 changed files with 17 additions and 8 deletions
|
@ -48,14 +48,23 @@ int main()
|
||||||
|
|
||||||
ClearBackground(RAYWHITE);
|
ClearBackground(RAYWHITE);
|
||||||
|
|
||||||
Begin3dMode(camera);
|
BeginOculusDrawing();
|
||||||
|
|
||||||
DrawCube(cubePosition, 2.0f, 2.0f, 2.0f, RED);
|
for (int eye = 0; eye < 2; eye++)
|
||||||
DrawCubeWires(cubePosition, 2.0f, 2.0f, 2.0f, MAROON);
|
{
|
||||||
|
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();
|
EndDrawing();
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue