diff --git a/Source/Examples/OpenGL/1.1/DisplayLists.cs b/Source/Examples/OpenGL/1.1/DisplayLists.cs
index 778a5d05..4a255eef 100644
--- a/Source/Examples/OpenGL/1.1/DisplayLists.cs
+++ b/Source/Examples/OpenGL/1.1/DisplayLists.cs
@@ -64,7 +64,7 @@ namespace Examples.Tutorial
#region OnLoad
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.DepthTest);
diff --git a/Source/Examples/OpenGL/1.1/ImmediateMode.cs b/Source/Examples/OpenGL/1.1/ImmediateMode.cs
index 8d3d692d..6811a1d7 100644
--- a/Source/Examples/OpenGL/1.1/ImmediateMode.cs
+++ b/Source/Examples/OpenGL/1.1/ImmediateMode.cs
@@ -44,7 +44,7 @@ namespace Examples.Tutorial
#region OnLoad
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
diff --git a/Source/Examples/OpenGL/1.1/Textures.cs b/Source/Examples/OpenGL/1.1/Textures.cs
index 1a7c489e..38d7f8be 100644
--- a/Source/Examples/OpenGL/1.1/Textures.cs
+++ b/Source/Examples/OpenGL/1.1/Textures.cs
@@ -36,7 +36,7 @@ namespace Examples.Tutorial
/// Setup OpenGL and load resources here.
///
/// Not used.
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.Texture2D);
diff --git a/Source/Examples/OpenGL/1.1/VertexArrays.cs b/Source/Examples/OpenGL/1.1/VertexArrays.cs
index fc4e9db2..15783af9 100644
--- a/Source/Examples/OpenGL/1.1/VertexArrays.cs
+++ b/Source/Examples/OpenGL/1.1/VertexArrays.cs
@@ -59,7 +59,7 @@ namespace Examples.Tutorial
#region OnLoad
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
GL.Enable(EnableCap.Texture2D);
diff --git a/Source/Examples/OpenGL/1.1/VertexLighting.cs b/Source/Examples/OpenGL/1.1/VertexLighting.cs
index 070315bc..47709c9b 100644
--- a/Source/Examples/OpenGL/1.1/VertexLighting.cs
+++ b/Source/Examples/OpenGL/1.1/VertexLighting.cs
@@ -34,7 +34,7 @@ namespace Examples.Tutorial
#region OnLoad
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
diff --git a/Source/Examples/OpenGL/1.5/VertexBufferObject.cs b/Source/Examples/OpenGL/1.5/VertexBufferObject.cs
index 0ab53abf..2cd7cd73 100644
--- a/Source/Examples/OpenGL/1.5/VertexBufferObject.cs
+++ b/Source/Examples/OpenGL/1.5/VertexBufferObject.cs
@@ -46,7 +46,7 @@ namespace Examples.Tutorial
#region OnLoad override
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
diff --git a/Source/Examples/OpenGL/3.0/HelloGL3.cs b/Source/Examples/OpenGL/3.0/HelloGL3.cs
index dd54c7a8..606fab42 100644
--- a/Source/Examples/OpenGL/3.0/HelloGL3.cs
+++ b/Source/Examples/OpenGL/3.0/HelloGL3.cs
@@ -120,7 +120,7 @@ void main(void)
GraphicsContextFlags.ForwardCompatible | GraphicsContextFlags.Debug)
{ }
- public override void OnLoad (System.EventArgs e)
+ protected override void OnLoad (System.EventArgs e)
{
// Create shaders
vertexShaderHandle = GL.CreateShader(ShaderType.VertexShader);
diff --git a/Source/Examples/OpenGL/EXT/FramebufferObject.cs b/Source/Examples/OpenGL/EXT/FramebufferObject.cs
index 9217070c..37073f6d 100644
--- a/Source/Examples/OpenGL/EXT/FramebufferObject.cs
+++ b/Source/Examples/OpenGL/EXT/FramebufferObject.cs
@@ -52,7 +52,7 @@ namespace Examples.Tutorial
#endregion Randoms
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
if (!GL.GetString(StringName.Extensions).Contains("EXT_framebuffer_object"))
{
diff --git a/Source/Examples/OpenGL/EXT/GeometryShader.cs b/Source/Examples/OpenGL/EXT/GeometryShader.cs
index d2e62a89..ee4b9708 100644
--- a/Source/Examples/OpenGL/EXT/GeometryShader.cs
+++ b/Source/Examples/OpenGL/EXT/GeometryShader.cs
@@ -46,7 +46,7 @@ namespace Examples.Tutorial
int shaderProgram = 0;
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
if (!GL.GetString(StringName.Extensions).Contains("EXT_geometry_shader4"))
{
diff --git a/Source/Examples/OpenGL/EXT/GeometryShaderAdvanced.cs b/Source/Examples/OpenGL/EXT/GeometryShaderAdvanced.cs
index 53ddc5de..1a092577 100644
--- a/Source/Examples/OpenGL/EXT/GeometryShaderAdvanced.cs
+++ b/Source/Examples/OpenGL/EXT/GeometryShaderAdvanced.cs
@@ -839,7 +839,7 @@ namespace Examples.Tutorial
#region overrides
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
if (!GL.GetString(StringName.Extensions).Contains("EXT_geometry_shader4"))
{
diff --git a/Source/Examples/OpenGL/GLSL/JuliaSetFractal.cs b/Source/Examples/OpenGL/GLSL/JuliaSetFractal.cs
index 6905579d..9df76d6a 100644
--- a/Source/Examples/OpenGL/GLSL/JuliaSetFractal.cs
+++ b/Source/Examples/OpenGL/GLSL/JuliaSetFractal.cs
@@ -63,7 +63,7 @@ namespace Examples.Tutorial
/// Setup OpenGL and load resources here.
///
/// Not used.
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
// Check for necessary capabilities:
string version = GL.GetString(StringName.Version);
diff --git a/Source/Examples/OpenGL/GLSL/SimpleGLSL.cs b/Source/Examples/OpenGL/GLSL/SimpleGLSL.cs
index 47049ed4..02e9dbbd 100644
--- a/Source/Examples/OpenGL/GLSL/SimpleGLSL.cs
+++ b/Source/Examples/OpenGL/GLSL/SimpleGLSL.cs
@@ -58,7 +58,7 @@ namespace Examples.Tutorial
/// check for GLSL support, and load the shaders.
///
/// Not used.
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
// Check for necessary capabilities:
string version = GL.GetString(StringName.Version);
diff --git a/Source/Examples/OpenGLES/1.1/SimpleWindow.cs b/Source/Examples/OpenGLES/1.1/SimpleWindow.cs
index aab7a839..c28caa13 100644
--- a/Source/Examples/OpenGLES/1.1/SimpleWindow.cs
+++ b/Source/Examples/OpenGLES/1.1/SimpleWindow.cs
@@ -61,7 +61,7 @@ namespace Examples.Tutorial
#region OnLoad
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
diff --git a/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs b/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs
index fe67cd82..e328bc5b 100644
--- a/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs
+++ b/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs
@@ -54,7 +54,7 @@ namespace Examples.Tutorial
#region OnLoad
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
diff --git a/Source/Examples/OpenTK/Fonts/FontRenderingAdvanced.cs b/Source/Examples/OpenTK/Fonts/FontRenderingAdvanced.cs
index c81a1180..14acc605 100644
--- a/Source/Examples/OpenTK/Fonts/FontRenderingAdvanced.cs
+++ b/Source/Examples/OpenTK/Fonts/FontRenderingAdvanced.cs
@@ -42,7 +42,7 @@ namespace Examples.Tutorial
#region OnLoad
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
GL.ClearColor(Color.MidnightBlue);
diff --git a/Source/Examples/OpenTK/GameWindow/FullscreenAntialias.cs b/Source/Examples/OpenTK/GameWindow/FullscreenAntialias.cs
index 291ef62a..01cbb17d 100644
--- a/Source/Examples/OpenTK/GameWindow/FullscreenAntialias.cs
+++ b/Source/Examples/OpenTK/GameWindow/FullscreenAntialias.cs
@@ -83,7 +83,7 @@ namespace Examples
/// Setup OpenGL and load resources here.
///
/// Not used.
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
GL.ClearColor(Color.MidnightBlue);
}
diff --git a/Source/Examples/OpenTK/GameWindow/SimpleWindow.cs b/Source/Examples/OpenTK/GameWindow/SimpleWindow.cs
index efc14825..a1c425d6 100644
--- a/Source/Examples/OpenTK/GameWindow/SimpleWindow.cs
+++ b/Source/Examples/OpenTK/GameWindow/SimpleWindow.cs
@@ -54,7 +54,7 @@ namespace Examples.Tutorial
/// Setup OpenGL and load resources here.
///
/// Not used.
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
GL.ClearColor(Color.MidnightBlue);
}
diff --git a/Source/Examples/OpenTK/Test/GameWindowStates.cs b/Source/Examples/OpenTK/Test/GameWindowStates.cs
index d4776540..3dd61495 100644
--- a/Source/Examples/OpenTK/Test/GameWindowStates.cs
+++ b/Source/Examples/OpenTK/Test/GameWindowStates.cs
@@ -70,7 +70,7 @@ namespace Examples.Tests
TextBitmap.UnlockBits(data);
}
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
GL.ClearColor(Color.MidnightBlue);
diff --git a/Source/OpenTK/GameWindow.cs b/Source/OpenTK/GameWindow.cs
index 2de5f0c9..788fff94 100644
--- a/Source/OpenTK/GameWindow.cs
+++ b/Source/OpenTK/GameWindow.cs
@@ -293,7 +293,7 @@ namespace OpenTK
/// Called after an OpenGL context has been established, but before entering the main loop.
///
/// Not used.
- public virtual void OnLoad(EventArgs e)
+ protected virtual void OnLoad(EventArgs e)
{
if (Load != null) Load(this, e);
}
@@ -306,7 +306,7 @@ namespace OpenTK
/// Called after GameWindow.Exit was called, but before destroying the OpenGL context.
///
/// Not used.
- public virtual void OnUnload(EventArgs e)
+ protected virtual void OnUnload(EventArgs e)
{
if (Unload != null) Unload(this, e);
}
diff --git a/Source/QuickStart/Game.cs b/Source/QuickStart/Game.cs
index b21f4f46..b94394e9 100644
--- a/Source/QuickStart/Game.cs
+++ b/Source/QuickStart/Game.cs
@@ -21,7 +21,7 @@ namespace StarterKit
/// Load resources here.
/// Not used.
- public override void OnLoad(EventArgs e)
+ protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);