mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-04-29 18:56:20 +00:00
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.
54 lines
1.6 KiB
C#
54 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.");
|
|
}
|
|
}
|
|
}
|
|
}
|