Redesigned stereo rendering mechanism
Now it's easier for the user! Just init Oculus device and get stereo rendering!
This commit is contained in:
parent
164ead03c9
commit
ee72654b55
6 changed files with 259 additions and 244 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue