mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 02:25:34 +00:00
Replaced tabs with spaces.
This commit is contained in:
parent
67bdd39d08
commit
b1a6202269
|
@ -7,7 +7,7 @@ namespace OpenTK.Graphics
|
|||
|
||||
partial class Glu
|
||||
{
|
||||
[Obsolete]
|
||||
[Obsolete]
|
||||
internal static partial class Imports
|
||||
{
|
||||
|
||||
|
|
|
@ -294,7 +294,7 @@ namespace OpenTK.Graphics
|
|||
/// string Filter = "FirstName = 'Ton'"
|
||||
/// MethodInfo mi = typeof(Person).GetMethod("GetAll");
|
||||
/// 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);
|
||||
/// </example>
|
||||
/// </summary>
|
||||
|
|
|
@ -92,12 +92,12 @@ namespace OpenTK.Platform.MacOS
|
|||
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_ACCUM_BLUE_SIZE, mode.AccumulatorFormat.Blue);
|
||||
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_ACCUM_ALPHA_SIZE, mode.AccumulatorFormat.Alpha);
|
||||
}
|
||||
|
||||
if (mode.Samples > 0)
|
||||
{
|
||||
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_SAMPLE_BUFFERS_ARB, 1);
|
||||
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_SAMPLES_ARB, mode.Samples);
|
||||
}
|
||||
|
||||
if (mode.Samples > 0)
|
||||
{
|
||||
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_SAMPLE_BUFFERS_ARB, 1);
|
||||
AddPixelAttrib(aglAttributes, Agl.PixelFormatAttribute.AGL_SAMPLES_ARB, mode.Samples);
|
||||
}
|
||||
|
||||
if (fullscreen)
|
||||
{
|
||||
|
|
|
@ -15,8 +15,8 @@ using System.Text;
|
|||
|
||||
namespace OpenTK.Platform.MacOS.Carbon
|
||||
{
|
||||
static class Application
|
||||
{
|
||||
static class Application
|
||||
{
|
||||
static bool mInitialized = false;
|
||||
static IntPtr uppHandler;
|
||||
static CarbonGLNative eventHandler;
|
||||
|
@ -30,7 +30,7 @@ namespace OpenTK.Platform.MacOS.Carbon
|
|||
internal static void Initialize()
|
||||
{
|
||||
if (mInitialized) return;
|
||||
|
||||
|
||||
API.AcquireRootMenu();
|
||||
|
||||
ConnectEvents();
|
||||
|
@ -124,7 +124,7 @@ namespace OpenTK.Platform.MacOS.Carbon
|
|||
|
||||
static void MainWindowClosed(object sender, EventArgs e)
|
||||
{
|
||||
Debug.Print("Quitting application event loop.");
|
||||
Debug.Print("Quitting application event loop.");
|
||||
API.QuitApplicationEventLoop();
|
||||
}
|
||||
|
||||
|
|
|
@ -25,14 +25,14 @@ namespace OpenTK.Platform.MacOS
|
|||
return new GraphicsContext(mode, WindowInfo, major, minor, flags);
|
||||
}
|
||||
|
||||
// TODO: Fix this
|
||||
bool lastIsIdle = false;
|
||||
// TODO: Fix this
|
||||
bool lastIsIdle = false;
|
||||
public bool IsIdle
|
||||
{
|
||||
get
|
||||
{
|
||||
lastIsIdle = !lastIsIdle;
|
||||
return lastIsIdle;
|
||||
lastIsIdle = !lastIsIdle;
|
||||
return lastIsIdle;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace OpenTK.Platform.MacOS
|
|||
|
||||
if (ownHandle)
|
||||
{
|
||||
Debug.Print("Disposing window {0}.", windowRef);
|
||||
Debug.Print("Disposing window {0}.", windowRef);
|
||||
Carbon.API.DisposeWindow(this.windowRef);
|
||||
windowRef = IntPtr.Zero;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace OpenTK.Platform.MacOS
|
|||
int currentHeight = CG.DisplayPixelsHigh(currentDisplay);
|
||||
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);
|
||||
Debug.Print("Supports {0} display modes.", displayModes.Count);
|
||||
|
||||
|
|
|
@ -244,7 +244,7 @@ namespace OpenTK.Platform
|
|||
/// <param name="cntrl">A System.Windows.Forms.Control.</param>
|
||||
/// <param name="context">A new IGraphicsContext instance.</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,
|
||||
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="context">A new IGraphicsContext instance.</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.")]
|
||||
public static void CreateGraphicsContext(Graphics.GraphicsMode mode, IntPtr cntrlHandle,
|
||||
[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,
|
||||
out Graphics.IGraphicsContext context, out IWindowInfo info)
|
||||
{
|
||||
info = CreateWindowInfo(mode, cntrlHandle);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* See license.txt for license info
|
||||
*
|
||||
* Date: 12/8/2007
|
||||
* Time: 6:43 ìì
|
||||
* Time: 6:43 <EFBFBD><EFBFBD>
|
||||
*/
|
||||
#endregion
|
||||
|
||||
|
@ -13,7 +13,7 @@ using System.Reflection;
|
|||
|
||||
namespace OpenTK.Platform.Windows
|
||||
{
|
||||
internal partial class Wgl
|
||||
internal partial class Wgl
|
||||
{
|
||||
#region --- Constructors ---
|
||||
|
||||
|
|
|
@ -170,8 +170,7 @@ namespace OpenTK.Platform.Windows
|
|||
"Failed to make context {0} current. Error: {1}", this, Marshal.GetLastWin32Error()));
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region public bool IsCurrent
|
||||
|
||||
|
|
Loading…
Reference in a new issue