OnLoad event updated to better demonstrate its usage.

This commit is contained in:
the_fiddler 2007-09-26 23:15:18 +00:00
parent c04b64e5a0
commit 87a23b654c

View file

@ -28,15 +28,12 @@ namespace Examples.Tutorial
#region OnLoad
/// <summary>
/// Load resources here.
/// Setup OpenGL and load resources here.
/// </summary>
/// <param name="e">Not used.</param>
public override void OnLoad(EventArgs e)
{
Trace.WriteLine(String.Format("OpenGL driver information: {0}, {1}, {2}",
GL.GetString(GL.Enums.StringName.RENDERER),
GL.GetString(GL.Enums.StringName.VENDOR),
GL.GetString(GL.Enums.StringName.VERSION)));
GL.ClearColor(Color.MidnightBlue);
}
#endregion