Changed example color to midnight blue.
This commit is contained in:
parent
ef4ab16e30
commit
b75b50acb2
10 changed files with 17 additions and 15 deletions
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace Examples.Tutorial
|
|||
/// <param name="e"></param>
|
||||
public override void OnLoad(EventArgs e)
|
||||
{
|
||||
GL.ClearColor(Color.SteelBlue);
|
||||
GL.ClearColor(Color.MidnightBlue);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace Examples.Tutorial
|
|||
/// <param name="e">Not used.</param>
|
||||
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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -68,7 +68,7 @@ namespace Examples.Tutorial
|
|||
this.Exit();
|
||||
}
|
||||
|
||||
GL.ClearColor(Color.SteelBlue);
|
||||
GL.ClearColor(Color.MidnightBlue);
|
||||
GL.Enable(EnableCap.DepthTest);
|
||||
|
||||
CreateVBO();
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Examples.Tutorial
|
|||
/// <param name="e">Not used.</param>
|
||||
public override void OnLoad(EventArgs e)
|
||||
{
|
||||
GL.ClearColor(Color.SteelBlue);
|
||||
GL.ClearColor(Color.MidnightBlue);
|
||||
GL.Enable(EnableCap.Texture2D);
|
||||
|
||||
GL.Hint(HintTarget.PerspectiveCorrectionHint, HintMode.Nicest);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue