2007-09-09 16:07:39 +00:00
|
|
|
|
#region --- License ---
|
|
|
|
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
|
|
|
* See license.txt for license info
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
2007-09-02 08:09:01 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OpenTK.Platform
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2007-09-09 11:53:25 +00:00
|
|
|
|
/// An empty IGLContext implementation to be used inside the Visual Studio designer.
|
2007-09-02 08:09:01 +00:00
|
|
|
|
/// </summary>
|
2007-09-09 11:53:25 +00:00
|
|
|
|
internal sealed class DummyGLContext : IGLContext
|
2007-09-02 08:09:01 +00:00
|
|
|
|
{
|
2007-09-09 15:10:21 +00:00
|
|
|
|
WindowInfo info = new WindowInfo();
|
|
|
|
|
DisplayMode mode = new DisplayMode();
|
|
|
|
|
|
2007-09-02 08:09:01 +00:00
|
|
|
|
#region --- IGLContext Members ---
|
|
|
|
|
|
2007-09-09 15:10:21 +00:00
|
|
|
|
public IntPtr Context { get { return IntPtr.Zero; } }
|
|
|
|
|
public IWindowInfo Info { get { return info; } }
|
|
|
|
|
public DisplayMode Mode { get { return mode; } }
|
2007-09-02 08:09:01 +00:00
|
|
|
|
|
2007-09-09 15:10:21 +00:00
|
|
|
|
public void CreateContext() { }
|
|
|
|
|
public void CreateContext(bool direct) { }
|
|
|
|
|
public void CreateContext(bool direct, IGLContext source) { }
|
2007-09-02 08:09:01 +00:00
|
|
|
|
|
2007-09-09 15:10:21 +00:00
|
|
|
|
public void SwapBuffers() { }
|
|
|
|
|
public void MakeCurrent() { }
|
2007-09-02 08:09:01 +00:00
|
|
|
|
|
2007-09-09 15:10:21 +00:00
|
|
|
|
public IntPtr GetAddress(string function) { return IntPtr.Zero; }
|
|
|
|
|
public IEnumerable<DisplayMode> GetDisplayModes() { return null; }
|
2007-09-02 08:09:01 +00:00
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region --- IDisposable Members ---
|
|
|
|
|
|
2007-09-09 15:10:21 +00:00
|
|
|
|
public void Dispose() { }
|
2007-09-02 08:09:01 +00:00
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|