Got rid of obsolete DisplayMode.

This commit is contained in:
the_fiddler 2008-04-13 15:51:09 +00:00
parent ea22820118
commit 2645abef72
7 changed files with 8 additions and 7 deletions

View file

@ -25,7 +25,7 @@ namespace Examples.Tutorial
[Example("Fonts", ExampleCategory.Tutorial, 3)]
class Fonts : GameWindow
{
public Fonts() : base(new DisplayMode(800, 600))
public Fonts() : base(800, 600)
{ }
#region --- Fields ---

View file

@ -35,7 +35,8 @@ namespace Examples.Tutorial
#region Constructor
public T02_Vertex_Arrays() : base(new DisplayMode(800, 600), "OpenTK Tutorial 2: Vertex Arrays")
public T02_Vertex_Arrays()
: base(800, 600)
{
//this.VSync = VSyncMode.On;
this.Keyboard.KeyUp += new KeyUpEvent(Keyboard_KeyUp);

View file

@ -26,7 +26,7 @@ namespace Examples.Tutorial
#region Constructor
public T04_Vertex_Lighting() : base(new DisplayMode(800, 600), "OpenTK | Vertex Lighting example")
public T04_Vertex_Lighting() : base(800, 600)
{
}

View file

@ -36,7 +36,7 @@ namespace Examples.Tutorial
#region --- Constructor ---
public T07_Display_Lists_Flower()
: base(new DisplayMode(800, 600))
: base(800, 600)
{
}

View file

@ -43,7 +43,7 @@ namespace Examples.Tutorial
#region --- Constructor ---
public T08_VBO() : base(new DisplayMode(800, 600), "OpenTK Tutorial 08: Vertex Buffer Objects") { }
public T08_VBO() : base(800, 600) { }
#endregion

View file

@ -29,7 +29,7 @@ namespace Examples.Tutorial
TextHandle poem_handle;
ITextPrinter text = new TextPrinter();
public Text() : base(new DisplayMode(800, 600))
public Text() : base(800, 600)
{ }
string poem = new StreamReader("Data/Poem.txt").ReadToEnd();

View file

@ -31,7 +31,7 @@ namespace Examples.Tutorial
Bitmap bitmap = new Bitmap("Data/logo.jpg");
int texture;
public Textures() : base(new DisplayMode(800, 600)) { }
public Textures() : base(800, 600) { }
#region OnLoad