Opentk/Source/Framework/X11Implementation.cs
the_fiddler 17b411e2ec Directory structure updates (more to come)
Updated OpenTK.OpenGL.Bind (0.7.7)

Split GL enums, core and extensions to different files. Extension support is missing for the time being.

Updated the framework implementation and namespace.
2006-10-15 20:28:57 +00:00

53 lines
1.6 KiB
C#

#region License
/* Copyright (c) 2006 Stephen Apostolopoulos
* See license.txt for license info
*/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Threading;
using OpenTK.Platform.X;
using System.Runtime.InteropServices;
using OpenTK.OpenGL.Platform;
using OpenTK.OpenGL;
namespace OpenTK.Frameworks
{
public partial class Framework
{
internal class X11Implementation : FrameworkImplementation
{
private IntPtr display;
public GLContext Context;
public override void OnHandleCreated(object sender, EventArgs args)
{
}
public override bool IsIdle()
{
return Api.Pending(display) == 0 ? true : false;
}
public override void Setup()
{
// Type xplatui = Type.GetType("System.Windows.Forms.XplatUIX11, System.Windows.Forms");
// if (xplatui != null)
// {
// display = (IntPtr)xplatui.GetField("DisplayHandle",
// System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic).GetValue(null);
// }
}
public override bool ToggleFullscreen(bool fullscreen)
{
throw new Exception("The method or operation is not implemented.");
}
}
}
}