Merge branch 'master' of https://github.com/thefiddler/opentk
This commit is contained in:
commit
5e502ce02d
4 changed files with 4 additions and 9 deletions
|
@ -85,8 +85,6 @@ namespace Examples
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Trace.Listeners.Add(new ConsoleTraceListener());
|
Trace.Listeners.Add(new ConsoleTraceListener());
|
||||||
LaunchExample(typeof(Examples.Tests.GameWindowStates).FullName);
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (args.Length > 0)
|
if (args.Length > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace Examples.Tutorial
|
||||||
#region Constructor
|
#region Constructor
|
||||||
|
|
||||||
public SimpleES20Window(GraphicsContextFlags flags)
|
public SimpleES20Window(GraphicsContextFlags flags)
|
||||||
: base(800, 600, new GraphicsMode(16, 16), "", GameWindowFlags.Default, DisplayDevice.Default, 2, 0, flags)
|
: base(800, 600, GraphicsMode.Default, "", GameWindowFlags.Default, DisplayDevice.Default, 2, 0, flags)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -111,9 +111,7 @@ namespace Examples.Tutorial
|
||||||
SimpleES20Window example;
|
SimpleES20Window example;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
example = new SimpleES20Window(GraphicsContextFlags.Default);
|
example = new SimpleES20Window(GraphicsContextFlags.Embedded);
|
||||||
|
|
||||||
//example = new SimpleES20Window(GraphicsContextFlags.Embedded);
|
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,8 +29,7 @@ namespace Examples.Tests
|
||||||
KeyboardState keyboard, keyboard_old;
|
KeyboardState keyboard, keyboard_old;
|
||||||
|
|
||||||
public GameWindowStates()
|
public GameWindowStates()
|
||||||
: base(800, 600, GraphicsMode.Default, "Test", GameWindowFlags.Default,
|
: base(800, 600, GraphicsMode.Default)
|
||||||
DisplayDevice.GetDisplay(DisplayIndex.Second), 1, 0, GraphicsContextFlags.Embedded)
|
|
||||||
{
|
{
|
||||||
VSync = VSyncMode.On;
|
VSync = VSyncMode.On;
|
||||||
Keyboard.KeyRepeat = true;
|
Keyboard.KeyRepeat = true;
|
||||||
|
|
|
@ -67,7 +67,7 @@ namespace OpenTK.Platform.Egl
|
||||||
Egl.DEPTH_SIZE, depth > 0 ? depth : 0,
|
Egl.DEPTH_SIZE, depth > 0 ? depth : 0,
|
||||||
Egl.STENCIL_SIZE, stencil > 0 ? stencil : 0,
|
Egl.STENCIL_SIZE, stencil > 0 ? stencil : 0,
|
||||||
|
|
||||||
//Egl.SAMPLE_BUFFERS, samples > 0 ? 1 : 0,
|
Egl.SAMPLE_BUFFERS, samples > 0 ? 1 : 0,
|
||||||
Egl.SAMPLES, samples > 0 ? samples : 0,
|
Egl.SAMPLES, samples > 0 ? samples : 0,
|
||||||
|
|
||||||
Egl.NONE,
|
Egl.NONE,
|
||||||
|
|
Loading…
Reference in a new issue