diff --git a/Source/Examples/OpenGL/GluTessellation.cs b/Source/Examples/OpenGL/GluTessellation.cs index 5192532a..110d85dd 100644 --- a/Source/Examples/OpenGL/GluTessellation.cs +++ b/Source/Examples/OpenGL/GluTessellation.cs @@ -168,7 +168,7 @@ namespace Examples new double[] {400.0, 150.0, 0.0, 0.0, 1.0, 0.0} }; - GL.ClearColor(System.Drawing.Color.SteelBlue); + GL.ClearColor(System.Drawing.Color.MidnightBlue); tess = Glu.NewTess(); startList = GL.GenLists(3); diff --git a/Source/Examples/OpenGL/JuliaSetFractal.cs b/Source/Examples/OpenGL/JuliaSetFractal.cs index df5658a0..e157fe21 100644 --- a/Source/Examples/OpenGL/JuliaSetFractal.cs +++ b/Source/Examples/OpenGL/JuliaSetFractal.cs @@ -289,7 +289,7 @@ namespace Examples.Tutorial // Then, render the fps: GL.UseProgram(0); printer.Begin(); - printer.Print((1 / e.Time).ToString("F2"), font, Color.PaleGoldenrod, RectangleF .Empty, TextPrinterOptions.NoCache); + printer.Print((1 / e.Time).ToString("F2"), font, Color.PaleGoldenrod, RectangleF.Empty, TextPrinterOptions.NoCache); printer.End(); SwapBuffers(); diff --git a/Source/Examples/Tests/GameWindowStates.cs b/Source/Examples/Tests/GameWindowStates.cs index 862989c3..c722c478 100644 --- a/Source/Examples/Tests/GameWindowStates.cs +++ b/Source/Examples/Tests/GameWindowStates.cs @@ -67,7 +67,7 @@ namespace Examples.Tests this.Keyboard.KeyRepeat = true; this.Keyboard.KeyUp += new OpenTK.Input.KeyUpEvent(Keyboard_KeyUp); - GL.ClearColor(System.Drawing.Color.SteelBlue); + GL.ClearColor(System.Drawing.Color.MidnightBlue); } void Keyboard_KeyUp(KeyboardDevice sender, Key key) @@ -119,11 +119,13 @@ namespace Examples.Tests printer.Begin(); printer.Print("Instructions:", font, Color.White); - printer.Print(String.Format("1 - cycle through window styles (current: {0}).", this.WindowState), font, Color.White, new RectangleF(0, font.Height, 0, 0)); - printer.Print(String.Format("2 - cycle through window borders (current: {0}).", this.WindowBorder), font, Color.White, new RectangleF(0, 2 * font.Height, 0, 0)); + GL.Translate(0, font.Height, 0); + printer.Print(String.Format("1 - cycle through window styles (current: {0}).", this.WindowState), font, Color.White, RectangleF.Empty); + GL.Translate(0, font.Height, 0); + printer.Print(String.Format("2 - cycle through window borders (current: {0}).", this.WindowBorder), font, Color.White, RectangleF.Empty); GL.Translate(0, font.Height, 0); printer.Print(String.Format("3 - toggle fullscreen (current: {0}).", - this.WindowState == WindowState.Fullscreen ? "enabled" : "disabled"), font, Color.White, new RectangleF(0, 2 * font.Height, 0, 0)); + this.WindowState == WindowState.Fullscreen ? "enabled" : "disabled"), font, Color.White, RectangleF.Empty); printer.End(); diff --git a/Source/Examples/Tutorial/Fonts.cs b/Source/Examples/Tutorial/Fonts.cs index e675012d..02f3608b 100644 --- a/Source/Examples/Tutorial/Fonts.cs +++ b/Source/Examples/Tutorial/Fonts.cs @@ -96,7 +96,7 @@ namespace Examples.Tutorial /// public override void OnLoad(EventArgs e) { - GL.ClearColor(Color.SteelBlue); + GL.ClearColor(Color.MidnightBlue); } #endregion diff --git a/Source/Examples/Tutorial/T01_Simple_Window.cs b/Source/Examples/Tutorial/T01_Simple_Window.cs index bbd100b3..94d7df22 100644 --- a/Source/Examples/Tutorial/T01_Simple_Window.cs +++ b/Source/Examples/Tutorial/T01_Simple_Window.cs @@ -58,7 +58,7 @@ namespace Examples.Tutorial /// Not used. public override void OnLoad(EventArgs e) { - GL.ClearColor(Color.SteelBlue); + GL.ClearColor(Color.MidnightBlue); } #endregion @@ -110,7 +110,7 @@ namespace Examples.Tutorial GL.Begin(BeginMode.Triangles); - GL.Color3(Color.LightSteelBlue); + GL.Color3(Color.MidnightBlue); GL.Vertex2(-1.0f, 1.0f); GL.Color3(Color.SpringGreen); GL.Vertex2(0.0f, -1.0f); diff --git a/Source/Examples/Tutorial/T03_Immediate_Mode_Cube.cs b/Source/Examples/Tutorial/T03_Immediate_Mode_Cube.cs index ae6c9e46..bba719bb 100644 --- a/Source/Examples/Tutorial/T03_Immediate_Mode_Cube.cs +++ b/Source/Examples/Tutorial/T03_Immediate_Mode_Cube.cs @@ -14,7 +14,7 @@ using System.Windows.Forms; using System.Threading; using System.Drawing; -using OpenTK; +using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; @@ -48,7 +48,7 @@ namespace Examples.Tutorial { base.OnLoad(e); - GL.ClearColor(Color.SteelBlue); + GL.ClearColor(Color.MidnightBlue); GL.Enable(EnableCap.DepthTest); } diff --git a/Source/Examples/Tutorial/T07_Display_Lists_Flower.cs b/Source/Examples/Tutorial/T07_Display_Lists_Flower.cs index 178de914..dcce0415 100644 --- a/Source/Examples/Tutorial/T07_Display_Lists_Flower.cs +++ b/Source/Examples/Tutorial/T07_Display_Lists_Flower.cs @@ -45,7 +45,7 @@ namespace Examples.Tutorial public override void OnLoad(EventArgs e) { - GL.ClearColor(Color.SteelBlue); + GL.ClearColor(Color.MidnightBlue); GL.Enable(EnableCap.DepthTest); GL.MatrixMode(MatrixMode.Modelview); diff --git a/Source/Examples/Tutorial/T10_GLSL_Cube.cs b/Source/Examples/Tutorial/T10_GLSL_Cube.cs index 0b36314c..06c94beb 100644 --- a/Source/Examples/Tutorial/T10_GLSL_Cube.cs +++ b/Source/Examples/Tutorial/T10_GLSL_Cube.cs @@ -68,7 +68,7 @@ namespace Examples.Tutorial this.Exit(); } - GL.ClearColor(Color.SteelBlue); + GL.ClearColor(Color.MidnightBlue); GL.Enable(EnableCap.DepthTest); CreateVBO(); diff --git a/Source/Examples/Tutorial/Textures.cs b/Source/Examples/Tutorial/Textures.cs index 45674714..3c3a1586 100644 --- a/Source/Examples/Tutorial/Textures.cs +++ b/Source/Examples/Tutorial/Textures.cs @@ -39,7 +39,7 @@ namespace Examples.Tutorial /// Not used. public override void OnLoad(EventArgs e) { - GL.ClearColor(Color.SteelBlue); + GL.ClearColor(Color.MidnightBlue); GL.Enable(EnableCap.Texture2D); GL.Hint(HintTarget.PerspectiveCorrectionHint, HintMode.Nicest); diff --git a/Source/Examples/WinForms/W02_Immediate_Mode_Cube.cs b/Source/Examples/WinForms/W02_Immediate_Mode_Cube.cs index da4ecd22..04673145 100644 --- a/Source/Examples/WinForms/W02_Immediate_Mode_Cube.cs +++ b/Source/Examples/WinForms/W02_Immediate_Mode_Cube.cs @@ -53,7 +53,7 @@ namespace Examples.WinForms GL.GetString(StringName.Renderer) + " " + GL.GetString(StringName.Version); - GL.ClearColor(Color.SteelBlue); + GL.ClearColor(Color.MidnightBlue); GL.Enable(EnableCap.DepthTest); Application.Idle += Application_Idle;