Changed example color to midnight blue.

This commit is contained in:
the_fiddler 2009-02-12 23:42:11 +00:00
parent ef4ab16e30
commit b75b50acb2
10 changed files with 17 additions and 15 deletions

View file

@ -168,7 +168,7 @@ namespace Examples
new double[] {400.0, 150.0, 0.0, 0.0, 1.0, 0.0} 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(); tess = Glu.NewTess();
startList = GL.GenLists(3); startList = GL.GenLists(3);

View file

@ -289,7 +289,7 @@ namespace Examples.Tutorial
// Then, render the fps: // Then, render the fps:
GL.UseProgram(0); GL.UseProgram(0);
printer.Begin(); 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(); printer.End();
SwapBuffers(); SwapBuffers();

View file

@ -67,7 +67,7 @@ namespace Examples.Tests
this.Keyboard.KeyRepeat = true; this.Keyboard.KeyRepeat = true;
this.Keyboard.KeyUp += new OpenTK.Input.KeyUpEvent(Keyboard_KeyUp); 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) void Keyboard_KeyUp(KeyboardDevice sender, Key key)
@ -119,11 +119,13 @@ namespace Examples.Tests
printer.Begin(); printer.Begin();
printer.Print("Instructions:", font, Color.White); 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)); GL.Translate(0, font.Height, 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)); 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); GL.Translate(0, font.Height, 0);
printer.Print(String.Format("3 - toggle fullscreen (current: {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(); printer.End();

View file

@ -96,7 +96,7 @@ namespace Examples.Tutorial
/// <param name="e"></param> /// <param name="e"></param>
public override void OnLoad(EventArgs e) public override void OnLoad(EventArgs e)
{ {
GL.ClearColor(Color.SteelBlue); GL.ClearColor(Color.MidnightBlue);
} }
#endregion #endregion

View file

@ -58,7 +58,7 @@ namespace Examples.Tutorial
/// <param name="e">Not used.</param> /// <param name="e">Not used.</param>
public override void OnLoad(EventArgs e) public override void OnLoad(EventArgs e)
{ {
GL.ClearColor(Color.SteelBlue); GL.ClearColor(Color.MidnightBlue);
} }
#endregion #endregion
@ -110,7 +110,7 @@ namespace Examples.Tutorial
GL.Begin(BeginMode.Triangles); GL.Begin(BeginMode.Triangles);
GL.Color3(Color.LightSteelBlue); GL.Color3(Color.MidnightBlue);
GL.Vertex2(-1.0f, 1.0f); GL.Vertex2(-1.0f, 1.0f);
GL.Color3(Color.SpringGreen); GL.Color3(Color.SpringGreen);
GL.Vertex2(0.0f, -1.0f); GL.Vertex2(0.0f, -1.0f);

View file

@ -48,7 +48,7 @@ namespace Examples.Tutorial
{ {
base.OnLoad(e); base.OnLoad(e);
GL.ClearColor(Color.SteelBlue); GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.DepthTest); GL.Enable(EnableCap.DepthTest);
} }

View file

@ -45,7 +45,7 @@ namespace Examples.Tutorial
public override void OnLoad(EventArgs e) public override void OnLoad(EventArgs e)
{ {
GL.ClearColor(Color.SteelBlue); GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.DepthTest); GL.Enable(EnableCap.DepthTest);
GL.MatrixMode(MatrixMode.Modelview); GL.MatrixMode(MatrixMode.Modelview);

View file

@ -68,7 +68,7 @@ namespace Examples.Tutorial
this.Exit(); this.Exit();
} }
GL.ClearColor(Color.SteelBlue); GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.DepthTest); GL.Enable(EnableCap.DepthTest);
CreateVBO(); CreateVBO();

View file

@ -39,7 +39,7 @@ namespace Examples.Tutorial
/// <param name="e">Not used.</param> /// <param name="e">Not used.</param>
public override void OnLoad(EventArgs e) public override void OnLoad(EventArgs e)
{ {
GL.ClearColor(Color.SteelBlue); GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.Texture2D); GL.Enable(EnableCap.Texture2D);
GL.Hint(HintTarget.PerspectiveCorrectionHint, HintMode.Nicest); GL.Hint(HintTarget.PerspectiveCorrectionHint, HintMode.Nicest);

View file

@ -53,7 +53,7 @@ namespace Examples.WinForms
GL.GetString(StringName.Renderer) + " " + GL.GetString(StringName.Renderer) + " " +
GL.GetString(StringName.Version); GL.GetString(StringName.Version);
GL.ClearColor(Color.SteelBlue); GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.DepthTest); GL.Enable(EnableCap.DepthTest);
Application.Idle += Application_Idle; Application.Idle += Application_Idle;