Replaced tabs with spaces.

This commit is contained in:
the_fiddler 2009-07-19 17:50:41 +00:00
parent 4847646cc8
commit 2e345ed6c8
10 changed files with 24 additions and 25 deletions

View file

@ -7,7 +7,7 @@ namespace OpenTK.Graphics
partial class Glu partial class Glu
{ {
[Obsolete] [Obsolete]
internal static partial class Imports internal static partial class Imports
{ {

View file

@ -294,7 +294,7 @@ namespace OpenTK.Graphics
/// string Filter = "FirstName = 'Ton'" /// string Filter = "FirstName = 'Ton'"
/// MethodInfo mi = typeof(Person).GetMethod("GetAll"); /// MethodInfo mi = typeof(Person).GetMethod("GetAll");
/// snoei.net.Reflection.FastInvoker.FastInvokeHandler fi = snoei.net.Reflection.FastInvoker.GetMethodInvoker( mi ); /// snoei.net.Reflection.FastInvoker.FastInvokeHandler fi = snoei.net.Reflection.FastInvoker.GetMethodInvoker( mi );
/// return fi.Invoke( Person, new object[]{Filter} ); // return fi.Invoke( Person, new object[]{Filter} );
/// //Calls Person.GetAll(string Filter); /// //Calls Person.GetAll(string Filter);
/// </example> /// </example>
/// </summary> /// </summary>

View file

@ -93,11 +93,11 @@ namespace OpenTK.Platform.MacOS
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_ACCUM_ALPHA_SIZE, mode.AccumulatorFormat.Alpha); AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_ACCUM_ALPHA_SIZE, mode.AccumulatorFormat.Alpha);
} }
if (mode.Samples > 0) if (mode.Samples > 0)
{ {
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_SAMPLE_BUFFERS_ARB, 1); AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_SAMPLE_BUFFERS_ARB, 1);
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_SAMPLES_ARB, mode.Samples); AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_SAMPLES_ARB, mode.Samples);
} }
if (fullscreen) if (fullscreen)
{ {

View file

@ -15,8 +15,8 @@ using System.Text;
namespace OpenTK.Platform.MacOS.Carbon namespace OpenTK.Platform.MacOS.Carbon
{ {
static class Application static class Application
{ {
static bool mInitialized = false; static bool mInitialized = false;
static IntPtr uppHandler; static IntPtr uppHandler;
static CarbonGLNative eventHandler; static CarbonGLNative eventHandler;
@ -124,7 +124,7 @@ namespace OpenTK.Platform.MacOS.Carbon
static void MainWindowClosed(object sender, EventArgs e) static void MainWindowClosed(object sender, EventArgs e)
{ {
Debug.Print("Quitting application event loop."); Debug.Print("Quitting application event loop.");
API.QuitApplicationEventLoop(); API.QuitApplicationEventLoop();
} }

View file

@ -25,14 +25,14 @@ namespace OpenTK.Platform.MacOS
return new GraphicsContext(mode, WindowInfo, major, minor, flags); return new GraphicsContext(mode, WindowInfo, major, minor, flags);
} }
// TODO: Fix this // TODO: Fix this
bool lastIsIdle = false; bool lastIsIdle = false;
public bool IsIdle public bool IsIdle
{ {
get get
{ {
lastIsIdle = !lastIsIdle; lastIsIdle = !lastIsIdle;
return lastIsIdle; return lastIsIdle;
} }
} }

View file

@ -60,7 +60,7 @@ namespace OpenTK.Platform.MacOS
if (ownHandle) if (ownHandle)
{ {
Debug.Print("Disposing window {0}.", windowRef); Debug.Print("Disposing window {0}.", windowRef);
Carbon.API.DisposeWindow(this.windowRef); Carbon.API.DisposeWindow(this.windowRef);
windowRef = IntPtr.Zero; windowRef = IntPtr.Zero;
} }

View file

@ -59,7 +59,7 @@ namespace OpenTK.Platform.MacOS
int currentHeight = CG.DisplayPixelsHigh(currentDisplay); int currentHeight = CG.DisplayPixelsHigh(currentDisplay);
Debug.Print("Display {0} is at {1}x{2}", i, currentWidth, currentHeight); Debug.Print("Display {0} is at {1}x{2}", i, currentWidth, currentHeight);
IntPtr displayModesPtr = CG.DisplayAvailableModes(currentDisplay); IntPtr displayModesPtr = CG.DisplayAvailableModes(currentDisplay);
CFArray displayModes = new CFArray(displayModesPtr); CFArray displayModes = new CFArray(displayModesPtr);
Debug.Print("Supports {0} display modes.", displayModes.Count); Debug.Print("Supports {0} display modes.", displayModes.Count);

View file

@ -244,7 +244,7 @@ namespace OpenTK.Platform
/// <param name="cntrl">A System.Windows.Forms.Control.</param> /// <param name="cntrl">A System.Windows.Forms.Control.</param>
/// <param name="context">A new IGraphicsContext instance.</param> /// <param name="context">A new IGraphicsContext instance.</param>
/// <param name="info">An IWindowInfo instance for the specified cntrl.</param> /// <param name="info">An IWindowInfo instance for the specified cntrl.</param>
[Obsolete("Create the IWindowInfo object first by calling CreateWindowInfo, then use the CreateGraphicsContext overload which takes major, minor and flags parameters.")] [Obsolete("Create the IWindowInfo object first by calling CreateWindowInfo, then use the CreateGraphicsContext overload which takes major, minor and flags parameters.")]
public static void CreateGraphicsContext(Graphics.GraphicsMode mode, Control cntrl, public static void CreateGraphicsContext(Graphics.GraphicsMode mode, Control cntrl,
out Graphics.IGraphicsContext context, out IWindowInfo info) out Graphics.IGraphicsContext context, out IWindowInfo info)
{ {
@ -258,8 +258,8 @@ namespace OpenTK.Platform
/// <param name="cntrlHandle">A System.IntPtr that contains the handle for a System.Windows.Forms.Control.</param> /// <param name="cntrlHandle">A System.IntPtr that contains the handle for a System.Windows.Forms.Control.</param>
/// <param name="context">A new IGraphicsContext instance.</param> /// <param name="context">A new IGraphicsContext instance.</param>
/// <param name="info">An IWindowInfo instance for the specified ctrl.</param> /// <param name="info">An IWindowInfo instance for the specified ctrl.</param>
[Obsolete("Create the IWindowInfo object first by calling CreateWindowInfo, then use the CreateGraphicsContext overload which takes major, minor and flags parameters.")] [Obsolete("Create the IWindowInfo object first by calling CreateWindowInfo, then use the CreateGraphicsContext overload which takes major, minor and flags parameters.")]
public static void CreateGraphicsContext(Graphics.GraphicsMode mode, IntPtr cntrlHandle, public static void CreateGraphicsContext(Graphics.GraphicsMode mode, IntPtr cntrlHandle,
out Graphics.IGraphicsContext context, out IWindowInfo info) out Graphics.IGraphicsContext context, out IWindowInfo info)
{ {
info = CreateWindowInfo(mode, cntrlHandle); info = CreateWindowInfo(mode, cntrlHandle);

View file

@ -3,7 +3,7 @@
* See license.txt for license info * See license.txt for license info
* *
* Date: 12/8/2007 * Date: 12/8/2007
* Time: 6:43 ìì * Time: 6:43 <EFBFBD><EFBFBD>
*/ */
#endregion #endregion
@ -13,7 +13,7 @@ using System.Reflection;
namespace OpenTK.Platform.Windows namespace OpenTK.Platform.Windows
{ {
internal partial class Wgl internal partial class Wgl
{ {
#region --- Constructors --- #region --- Constructors ---

View file

@ -170,8 +170,7 @@ namespace OpenTK.Platform.Windows
"Failed to make context {0} current. Error: {1}", this, Marshal.GetLastWin32Error())); "Failed to make context {0} current. Error: {1}", this, Marshal.GetLastWin32Error()));
} }
#endregion
#endregion
#region public bool IsCurrent #region public bool IsCurrent