mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 18:15:38 +00:00
Updated update and render frequencies for all examples.
This commit is contained in:
parent
ceb5f4dfd8
commit
dfe1d7c335
|
@ -77,7 +77,7 @@ namespace Examples.Tutorial
|
|||
|
||||
public void Launch()
|
||||
{
|
||||
this.Run();
|
||||
this.Run(1.0, 5.0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -99,16 +99,9 @@ namespace Examples.Tutorial
|
|||
Fullscreen = !Fullscreen;
|
||||
}
|
||||
|
||||
GL.MatrixMode(GL.Enums.MatrixMode.MODELVIEW);
|
||||
GL.LoadIdentity();
|
||||
Glu.LookAt(
|
||||
0.0, 5.0, 5.0,
|
||||
0.0, 0.0, 0.0,
|
||||
0.0, 1.0, 0.0
|
||||
);
|
||||
|
||||
GL.Rotate(angle, 0.0f, 1.0f, 0.0f);
|
||||
angle += 0.5f;
|
||||
angle += 3.0f;
|
||||
if (angle > 720.0f)
|
||||
angle -= 720.0f;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -122,6 +115,15 @@ namespace Examples.Tutorial
|
|||
{
|
||||
GL.Clear(GL.Enums.ClearBufferMask.COLOR_BUFFER_BIT | GL.Enums.ClearBufferMask.DEPTH_BUFFER_BIT);
|
||||
|
||||
GL.MatrixMode(GL.Enums.MatrixMode.MODELVIEW);
|
||||
GL.LoadIdentity();
|
||||
Glu.LookAt(
|
||||
0.0, 5.0, 5.0,
|
||||
0.0, 0.0, 0.0,
|
||||
0.0, 1.0, 0.0
|
||||
);
|
||||
GL.Rotate(angle, 0.0f, 1.0f, 0.0f);
|
||||
|
||||
DrawCube();
|
||||
|
||||
Context.SwapBuffers();
|
||||
|
@ -188,7 +190,7 @@ namespace Examples.Tutorial
|
|||
/// </remarks>
|
||||
public void Launch()
|
||||
{
|
||||
Run();
|
||||
Run(60.0, 60.0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace Examples.Tutorial
|
|||
|
||||
public void Launch()
|
||||
{
|
||||
this.Run();
|
||||
this.Run(60.0, 60.0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -81,21 +81,6 @@ namespace Examples.Tutorial
|
|||
|
||||
#endregion
|
||||
|
||||
#region public void Launch()
|
||||
|
||||
/// <summary>
|
||||
/// Launches this example.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Provides a simple way for the example launcher to launch the examples.
|
||||
/// </remarks>
|
||||
public void Launch()
|
||||
{
|
||||
Run();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region --- Event Handlers ---
|
||||
|
||||
#region OnResize
|
||||
|
@ -165,5 +150,20 @@ namespace Examples.Tutorial
|
|||
#endregion
|
||||
|
||||
#endregion --- Event Handlers ---
|
||||
|
||||
#region public void Launch()
|
||||
|
||||
/// <summary>
|
||||
/// Launches this example.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Provides a simple way for the example launcher to launch the examples.
|
||||
/// </remarks>
|
||||
public void Launch()
|
||||
{
|
||||
this.Run(1.0, 5.0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -239,11 +239,7 @@ namespace Examples.Tutorial
|
|||
/// </remarks>
|
||||
public void Launch()
|
||||
{
|
||||
//using (T08_VBO ex = new T08_VBO())
|
||||
{
|
||||
//ex.Run();
|
||||
Run();
|
||||
}
|
||||
Run(60.0, 60.0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -157,15 +157,9 @@ namespace Examples.Tutorial
|
|||
this.Exit();
|
||||
}
|
||||
|
||||
GL.MatrixMode(GL.Enums.MatrixMode.MODELVIEW);
|
||||
GL.LoadIdentity();
|
||||
Glu.LookAt(
|
||||
0.0, 5.0, 5.0,
|
||||
0.0, 0.0, 0.0,
|
||||
0.0, 1.0, 0.0
|
||||
);
|
||||
GL.Rotate(angle, 0.0f, 1.0f, 0.0f);
|
||||
angle += 0.05f;
|
||||
angle += 3.0f;
|
||||
if (angle > 720.0f)
|
||||
angle -= 720.0f;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -178,10 +172,18 @@ namespace Examples.Tutorial
|
|||
|
||||
GL.Clear(GL.Enums.ClearBufferMask.COLOR_BUFFER_BIT | GL.Enums.ClearBufferMask.DEPTH_BUFFER_BIT);
|
||||
|
||||
GL.MatrixMode(GL.Enums.MatrixMode.MODELVIEW);
|
||||
GL.LoadIdentity();
|
||||
Glu.LookAt(
|
||||
0.0, 5.0, 5.0,
|
||||
0.0, 0.0, 0.0,
|
||||
0.0, 1.0, 0.0
|
||||
);
|
||||
GL.Rotate(angle, 0.0f, 1.0f, 0.0f);
|
||||
|
||||
DrawCube();
|
||||
|
||||
Context.SwapBuffers();
|
||||
Thread.Sleep(0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -244,7 +246,7 @@ namespace Examples.Tutorial
|
|||
/// </remarks>
|
||||
public void Launch()
|
||||
{
|
||||
Run();
|
||||
Run(60.0, 60.0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue