mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 15:05:41 +00:00
Got rid of obsolete DisplayMode.
This commit is contained in:
parent
ea22820118
commit
2645abef72
|
@ -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 ---
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace Examples.Tutorial
|
|||
#region --- Constructor ---
|
||||
|
||||
public T07_Display_Lists_Flower()
|
||||
: base(new DisplayMode(800, 600))
|
||||
: base(800, 600)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue