Updated some licenses. Remove a couple of DisplayMode warnings.

This commit is contained in:
the_fiddler 2008-03-24 13:15:25 +00:00
parent ef16998dca
commit 0a5c962c51
4 changed files with 42 additions and 26 deletions

View file

@ -1,6 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* See license.txt for license info
/* Licensed under the MIT/X11 license.
* Copyright (c) 2006-2008 the OpenTK Team.
* This notice may not be removed from any source distribution.
* See license.txt for licensing details.
*/
#endregion
@ -229,10 +231,21 @@ namespace Examples
[STAThread]
static void Main()
{
using (Form exampleLauncher = new ExampleLauncher())
try
{
Application.EnableVisualStyles();
Application.Run(exampleLauncher);
//FileIOPermission fileIO = new FileIOPermission(FileIOPermissionAccess.AllAccess, ".");
//fileIO.Demand();
using (Form exampleLauncher = new ExampleLauncher())
{
Application.EnableVisualStyles();
Application.Run(exampleLauncher);
}
}
catch (System.Security.SecurityException e)
{
}
}
}

View file

@ -40,13 +40,13 @@ namespace Examples
Trace.WriteLine("Testing AudioContext functions.");
Trace.Indent();
Trace.WriteLine("Suspend()...");
context.Suspend();
Trace.Assert(!context.IsProcessing);
Trace.WriteLine("Process()...");
context.Process();
Trace.Assert(context.IsProcessing);
// Trace.WriteLine("Suspend()...");
// context.Suspend();
// Trace.Assert(!context.IsProcessing);
//
// Trace.WriteLine("Process()...");
// context.Process();
// Trace.Assert(context.IsProcessing);
//Trace.WriteLine("MakeCurrent()...");
//context.MakeCurrent();

View file

@ -1,6 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* See license.txt for license info
/* Licensed under the MIT/X11 license.
* Copyright (c) 2006-2008 the OpenTK Team.
* This notice may not be removed from any source distribution.
* See license.txt for licensing detailed licensing details.
*/
#endregion
@ -12,10 +14,9 @@ using System.Windows.Forms;
using System.Threading;
using System.Drawing;
using OpenTK;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using OpenTK.Graphics.OpenGL.Enums;
using OpenTK.Platform;
#endregion
@ -36,7 +37,7 @@ namespace Examples.Tutorial
#region --- Constructor ---
public T03_Immediate_Mode_Cube() : base(new DisplayMode(800, 600))
public T03_Immediate_Mode_Cube() : base(800, 600, new GraphicsMode(16, 16))
{ }
#endregion

View file

@ -1,6 +1,8 @@
#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* See license.txt for license info
/* Licensed under the MIT/X11 license.
* Copyright (c) 2006-2008 the OpenTK Team.
* This notice may not be removed from any source distribution.
* See license.txt for licensing detailed licensing details.
*/
#endregion
@ -12,13 +14,13 @@ using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using OpenTK.Graphics.OpenGL;
using OpenTK;
using System.Threading;
using System.Diagnostics;
using System.IO;
using OpenTK.Graphics.OpenGL.Enums;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
#endregion --- Using Directives ---
@ -43,7 +45,7 @@ namespace Examples.Tutorial
#region --- Constructors ---
public T10_GLSL_Cube()
: base(new DisplayMode(800, 600))
: base(800, 600, GraphicsMode.Default)
{ }
#endregion