mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 06:05:37 +00:00
95318a8366
X11 and Windows GLControl and GLNative implementation now use IGLContext interfaces instead of direct X11GLContext and WinGLContext. Decouples the two (good!). Updated all Native, Control, Context classes to use the new interfaces.
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace OpenTK.Platform
|
|
{
|
|
/// <summary>
|
|
/// An empty IGLContext implementation to be used inside the Visual Studio designer.
|
|
/// </summary>
|
|
internal sealed class DummyGLContext : IGLContext
|
|
{
|
|
WindowInfo info = new WindowInfo();
|
|
DisplayMode mode = new DisplayMode();
|
|
|
|
#region --- IGLContext Members ---
|
|
|
|
public IntPtr Context { get { return IntPtr.Zero; } }
|
|
public IWindowInfo Info { get { return info; } }
|
|
public DisplayMode Mode { get { return mode; } }
|
|
|
|
public void CreateContext() { }
|
|
public void CreateContext(bool direct) { }
|
|
public void CreateContext(bool direct, IGLContext source) { }
|
|
|
|
public void SwapBuffers() { }
|
|
public void MakeCurrent() { }
|
|
|
|
public IntPtr GetAddress(string function) { return IntPtr.Zero; }
|
|
public IEnumerable<DisplayMode> GetDisplayModes() { return null; }
|
|
|
|
#endregion
|
|
|
|
#region --- IDisposable Members ---
|
|
|
|
public void Dispose() { }
|
|
|
|
#endregion
|
|
}
|
|
}
|