Opentk/Source/OpenTK/Platform/GLContext.cs
the_fiddler 2ca6e6c617 Added OpenTK.Platform.WindowInfo and OpenTK.Platform.IMutableWindowInfo. Split IWindowInfo implementation to IWindowInfo and IMutableWindowInfo. Added several methods.
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.
2007-09-09 15:10:21 +00:00

79 lines
2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace OpenTK.Platform
{
public class GLContext : IGLContext
{
private IGLContext implementation;
public GLContext(DisplayMode mode, IWindowInfo window)
{
}
#region --- IGLContext Members ---
public IntPtr Context
{
get { return implementation.Context; }
}
public IWindowInfo Info
{
get { throw new Exception("The method or operation is not implemented."); }
}
public DisplayMode Mode
{
get { throw new Exception("The method or operation is not implemented."); }
}
public void CreateContext()
{
throw new Exception("The method or operation is not implemented.");
}
public void CreateContext(bool direct)
{
throw new Exception("The method or operation is not implemented.");
}
public void CreateContext(bool direct, IGLContext source)
{
throw new Exception("The method or operation is not implemented.");
}
public void SwapBuffers()
{
throw new Exception("The method or operation is not implemented.");
}
public void MakeCurrent()
{
throw new Exception("The method or operation is not implemented.");
}
public IntPtr GetAddress(string function)
{
throw new Exception("The method or operation is not implemented.");
}
public IEnumerable<DisplayMode> GetDisplayModes()
{
throw new Exception("The method or operation is not implemented.");
}
#endregion
#region IDisposable Members
public void Dispose()
{
throw new Exception("The method or operation is not implemented.");
}
#endregion
}
}