mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 18:51:08 +00:00
Removed unused code files. Changed endings to CRLF.
This commit is contained in:
parent
2e467d1aa3
commit
9478d51459
|
@ -1,59 +0,0 @@
|
||||||
#region --- License ---
|
|
||||||
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
||||||
* See license.txt for license info
|
|
||||||
*/
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
using Bind.Structures;
|
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
namespace Bind.GL2
|
|
||||||
{
|
|
||||||
class SpecReader : ISpecReader
|
|
||||||
{
|
|
||||||
#region --- ISpecReader Members ---
|
|
||||||
|
|
||||||
#region public virtual DelegateCollection ReadDelegates(System.IO.StreamReader specFile)
|
|
||||||
|
|
||||||
public virtual DelegateCollection ReadDelegates(System.IO.StreamReader specFile)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public virtual EnumCollection ReadEnums(System.IO.StreamReader specFile)
|
|
||||||
|
|
||||||
public virtual EnumCollection ReadEnums(System.IO.StreamReader specfile)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public virtual Dictionary<string, string> ReadTypeMap(System.IO.StreamReader sr)
|
|
||||||
|
|
||||||
public virtual Dictionary<string, string> ReadTypeMap(System.IO.StreamReader sr)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public virtual Dictionary<string, string> ReadCSTypeMap(System.IO.StreamReader sr)
|
|
||||||
|
|
||||||
public virtual Dictionary<string, string> ReadCSTypeMap(System.IO.StreamReader sr)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
#region --- License ---
|
|
||||||
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
||||||
* See license.txt for license info
|
|
||||||
*/
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
using Bind.Structures;
|
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
namespace Bind.GL2
|
|
||||||
{
|
|
||||||
class SpecWriter : ISpecWriter
|
|
||||||
{
|
|
||||||
#region --- ISpecWriter Members ---
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -8,6 +8,7 @@
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace OpenTK.OpenGL
|
namespace OpenTK.OpenGL
|
||||||
{
|
{
|
||||||
|
@ -41,7 +42,7 @@ namespace OpenTK.OpenGL
|
||||||
|
|
||||||
public static Delegate Load(string function, Type signature)
|
public static Delegate Load(string function, Type signature)
|
||||||
{
|
{
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,31 +24,31 @@ namespace OpenTK.Platform.X11
|
||||||
private bool fullscreen;
|
private bool fullscreen;
|
||||||
|
|
||||||
#region --- Contructors ---
|
#region --- Contructors ---
|
||||||
|
|
||||||
[Obsolete("Use X11GLControl(UserControl c, DisplayMode mode) instead.")]
|
[Obsolete("Use X11GLControl(UserControl c, DisplayMode mode) instead.")]
|
||||||
public X11GLControl(UserControl c, int width, int height, bool fullscreen)
|
public X11GLControl(UserControl c, int width, int height, bool fullscreen)
|
||||||
: this(c, new DisplayMode(width, height, new ColorDepth(32), 16,
|
: this(c, new DisplayMode(width, height, new ColorDepth(32), 16,
|
||||||
0, 0, 2, false, false, false, 0.0f)) { }
|
0, 0, 2, false, false, false, 0.0f)) { }
|
||||||
|
|
||||||
public X11GLControl(UserControl c, DisplayMode mode)
|
public X11GLControl(UserControl c, DisplayMode mode)
|
||||||
{
|
{
|
||||||
Debug.WriteLine("Creating opengl control (X11GLControl driver)");
|
Debug.WriteLine("Creating opengl control (X11GLControl driver)");
|
||||||
Debug.Indent();
|
Debug.Indent();
|
||||||
|
|
||||||
if (c == null/* || c.TopLevelControl == null*/)
|
if (c == null/* || c.TopLevelControl == null*/)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("UserControl c may not be null.");
|
throw new ArgumentException("UserControl c may not be null.");
|
||||||
}
|
}
|
||||||
|
|
||||||
c.ParentChanged += new EventHandler(c_ParentChanged);
|
c.ParentChanged += new EventHandler(c_ParentChanged);
|
||||||
if (c.ParentForm != null)
|
if (c.ParentForm != null)
|
||||||
{
|
{
|
||||||
throw new ApplicationException("Internal OpenTK error, please report at http://opentk.sourceforge.net");
|
throw new ApplicationException("Internal OpenTK error, please report at http://opentk.sourceforge.net");
|
||||||
}
|
}
|
||||||
|
|
||||||
info.Handle = c.Handle;
|
info.Handle = c.Handle;
|
||||||
Debug.Print("Binding to control: {0}", String.IsNullOrEmpty(c.Name) ? c.Text : c.Name);
|
Debug.Print("Binding to control: {0}", String.IsNullOrEmpty(c.Name) ? c.Text : c.Name);
|
||||||
|
|
||||||
xplatui = Type.GetType("System.Windows.Forms.XplatUIX11, System.Windows.Forms");
|
xplatui = Type.GetType("System.Windows.Forms.XplatUIX11, System.Windows.Forms");
|
||||||
Debug.Write("System.Windows.Forms.XplatUIX11: ");
|
Debug.Write("System.Windows.Forms.XplatUIX11: ");
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ namespace OpenTK.Platform.X11
|
||||||
Debug.Print(
|
Debug.Print(
|
||||||
"Screen: {0}, Display: {1}, Root Window: {2}, Handle: {3}",
|
"Screen: {0}, Display: {1}, Root Window: {2}, Handle: {3}",
|
||||||
info.Screen, info.Display, info.RootWindow, info.Handle);
|
info.Screen, info.Display, info.RootWindow, info.Handle);
|
||||||
|
|
||||||
glContext = new X11GLContext(info, mode);
|
glContext = new X11GLContext(info, mode);
|
||||||
|
|
||||||
info.VisualInfo = glContext.CreateVisual();
|
info.VisualInfo = glContext.CreateVisual();
|
||||||
|
@ -79,7 +79,7 @@ namespace OpenTK.Platform.X11
|
||||||
System.Reflection.BindingFlags.Static |
|
System.Reflection.BindingFlags.Static |
|
||||||
System.Reflection.BindingFlags.NonPublic).SetValue(
|
System.Reflection.BindingFlags.NonPublic).SetValue(
|
||||||
null,
|
null,
|
||||||
//glContext.XVisual
|
//glContext.XVisual
|
||||||
info.VisualInfo.visual
|
info.VisualInfo.visual
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -87,8 +87,8 @@ namespace OpenTK.Platform.X11
|
||||||
"CustomColormap",
|
"CustomColormap",
|
||||||
System.Reflection.BindingFlags.Static |
|
System.Reflection.BindingFlags.Static |
|
||||||
System.Reflection.BindingFlags.NonPublic).SetValue(
|
System.Reflection.BindingFlags.NonPublic).SetValue(
|
||||||
null,
|
null,
|
||||||
API.CreateColormap(info.Display, info.RootWindow, info.VisualInfo.visual, 0/*AllocNone*/)
|
API.CreateColormap(info.Display, info.RootWindow, info.VisualInfo.visual, 0/*AllocNone*/)
|
||||||
//glContext.colormap
|
//glContext.colormap
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue