mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-17 15:21:44 +00:00
Redesigned stereo rendering mechanism
Now it's easier for the user! Just init Oculus device and get stereo rendering!
This commit is contained in:
@@ -50,22 +50,15 @@ int main()
|
||||
// Draw
|
||||
//----------------------------------------------------------------------------------
|
||||
BeginDrawing();
|
||||
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
|
||||
Begin3dMode(camera);
|
||||
|
||||
for (int eye = 0; eye < 2; eye++)
|
||||
{
|
||||
SetOculusView(eye);
|
||||
|
||||
DrawCube(cubePosition, 2.0f, 2.0f, 2.0f, RED);
|
||||
DrawCubeWires(cubePosition, 2.0f, 2.0f, 2.0f, MAROON);
|
||||
|
||||
DrawGrid(10, 1.0f);
|
||||
|
||||
DrawDefaultBuffers(); // Process internal dynamic buffers
|
||||
}
|
||||
|
||||
End3dMode();
|
||||
|
||||
|
Reference in New Issue
Block a user