mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:17:05 +00:00
Got rid of obsolete DisplayMode.
This commit is contained in:
parent
23ed50e322
commit
cacb1625c6
|
@ -25,7 +25,7 @@ namespace Examples.Tutorial
|
||||||
[Example("Fonts", ExampleCategory.Tutorial, 3)]
|
[Example("Fonts", ExampleCategory.Tutorial, 3)]
|
||||||
class Fonts : GameWindow
|
class Fonts : GameWindow
|
||||||
{
|
{
|
||||||
public Fonts() : base(new DisplayMode(800, 600))
|
public Fonts() : base(800, 600)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
#region --- Fields ---
|
#region --- Fields ---
|
||||||
|
|
|
@ -35,7 +35,8 @@ namespace Examples.Tutorial
|
||||||
|
|
||||||
#region Constructor
|
#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.VSync = VSyncMode.On;
|
||||||
this.Keyboard.KeyUp += new KeyUpEvent(Keyboard_KeyUp);
|
this.Keyboard.KeyUp += new KeyUpEvent(Keyboard_KeyUp);
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace Examples.Tutorial
|
||||||
|
|
||||||
#region Constructor
|
#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 ---
|
#region --- Constructor ---
|
||||||
|
|
||||||
public T07_Display_Lists_Flower()
|
public T07_Display_Lists_Flower()
|
||||||
: base(new DisplayMode(800, 600))
|
: base(800, 600)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace Examples.Tutorial
|
||||||
|
|
||||||
#region --- Constructor ---
|
#region --- Constructor ---
|
||||||
|
|
||||||
public T08_VBO() : base(new DisplayMode(800, 600), "OpenTK Tutorial 08: Vertex Buffer Objects") { }
|
public T08_VBO() : base(800, 600) { }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace Examples.Tutorial
|
||||||
TextHandle poem_handle;
|
TextHandle poem_handle;
|
||||||
ITextPrinter text = new TextPrinter();
|
ITextPrinter text = new TextPrinter();
|
||||||
|
|
||||||
public Text() : base(new DisplayMode(800, 600))
|
public Text() : base(800, 600)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
string poem = new StreamReader("Data/Poem.txt").ReadToEnd();
|
string poem = new StreamReader("Data/Poem.txt").ReadToEnd();
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace Examples.Tutorial
|
||||||
Bitmap bitmap = new Bitmap("Data/logo.jpg");
|
Bitmap bitmap = new Bitmap("Data/logo.jpg");
|
||||||
int texture;
|
int texture;
|
||||||
|
|
||||||
public Textures() : base(new DisplayMode(800, 600)) { }
|
public Textures() : base(800, 600) { }
|
||||||
|
|
||||||
#region OnLoad
|
#region OnLoad
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue