00001 #region License 00002 // 00003 // The Open Toolkit Library License 00004 // 00005 // Copyright (c) 2006 - 2009 the Open Toolkit library, except where noted. 00006 // 00007 // Permission is hereby granted, free of charge, to any person obtaining a copy 00008 // of this software and associated documentation files (the "Software"), to deal 00009 // in the Software without restriction, including without limitation the rights to 00010 // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 00011 // the Software, and to permit persons to whom the Software is furnished to do 00012 // so, subject to the following conditions: 00013 // 00014 // The above copyright notice and this permission notice shall be included in all 00015 // copies or substantial portions of the Software. 00016 // 00017 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00018 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 00019 // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00020 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00021 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00022 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00023 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00024 // OTHER DEALINGS IN THE SOFTWARE. 00025 // 00026 #endregion 00027 00028 using System; 00029 using OpenTK.Graphics; 00030 using OpenTK.Platform; 00031 00032 namespace OpenTK 00033 { 00034 class DummyGLControl : IGLControl 00035 { 00036 #region IGLControl Members 00037 00038 public IGraphicsContext CreateContext(int major, int minor, GraphicsContextFlags flags) 00039 { 00040 return new GraphicsContext(null, null); 00041 } 00042 00043 public bool IsIdle 00044 { 00045 get { return false; } 00046 } 00047 00048 public IWindowInfo WindowInfo 00049 { 00050 get { return Utilities.CreateDummyWindowInfo(); } 00051 } 00052 00053 #endregion 00054 } 00055 }
1.6.1