mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-07 16:50:43 +00:00
OnLoad event updated to better demonstrate its usage.
This commit is contained in:
parent
c04b64e5a0
commit
87a23b654c
|
@ -28,15 +28,12 @@ namespace Examples.Tutorial
|
||||||
#region OnLoad
|
#region OnLoad
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Load resources here.
|
/// Setup OpenGL and load resources here.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="e">Not used.</param>
|
/// <param name="e">Not used.</param>
|
||||||
public override void OnLoad(EventArgs e)
|
public override void OnLoad(EventArgs e)
|
||||||
{
|
{
|
||||||
Trace.WriteLine(String.Format("OpenGL driver information: {0}, {1}, {2}",
|
GL.ClearColor(Color.MidnightBlue);
|
||||||
GL.GetString(GL.Enums.StringName.RENDERER),
|
|
||||||
GL.GetString(GL.Enums.StringName.VENDOR),
|
|
||||||
GL.GetString(GL.Enums.StringName.VERSION)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue