Hooked up new loading mechanism

This commit is contained in:
Stefanos A. 2013-11-24 13:58:30 +01:00
parent 657c447737
commit fec958c8dc
6 changed files with 83 additions and 2 deletions

View file

@ -24,5 +24,14 @@ namespace OpenTK.Graphics.ES10
#endregion
internal override void LoadEntryPoints()
{
// nothing to do
}
internal override bool LoadEntryPoint(string function)
{
return true; // nothing to do
}
}
}

View file

@ -15,6 +15,22 @@ namespace OpenTK.Graphics.ES11
const string Library = "GLESv1_CM";
static readonly object sync_root = new object();
static IntPtr[] EntryPoints;
static string[] EntryPointNames;
#region Constructors
/// <summary>
/// Constructs a new instance.
/// </summary>
public GL()
{
EntryPointsInstance = EntryPoints;
EntryPointNamesInstance = EntryPointNames;
}
#endregion
#region --- Protected Members ---
/// <summary>

View file

@ -42,6 +42,22 @@ namespace OpenTK.Graphics.ES20
const string Library = "libGLESv2.dll";
static readonly object sync_root = new object();
static IntPtr[] EntryPoints;
static string[] EntryPointNames;
#region Constructors
/// <summary>
/// Constructs a new instance.
/// </summary>
public GL()
{
EntryPointsInstance = EntryPoints;
EntryPointNamesInstance = EntryPointNames;
}
#endregion
#region --- Protected Members ---
/// <summary>

View file

@ -42,6 +42,22 @@ namespace OpenTK.Graphics.ES30
const string Library = "libGLESv2.dll";
static readonly object sync_root = new object();
static IntPtr[] EntryPoints;
static string[] EntryPointNames;
#region Constructors
/// <summary>
/// Constructs a new instance.
/// </summary>
public GL()
{
EntryPointsInstance = EntryPoints;
EntryPointNamesInstance = EntryPointNames;
}
#endregion
#region --- Protected Members ---
/// <summary>

View file

@ -58,12 +58,20 @@ namespace OpenTK.Graphics.OpenGL
static SortedList<string, bool> AvailableExtensions = new SortedList<string, bool>();
static readonly object sync_root = new object();
static IntPtr[] EntryPoints;
static string[] EntryPointNames;
#endregion
#region --- Constructor ---
#region Constructors
static GL()
/// <summary>
/// Constructs a new instance.
/// </summary>
public GL()
{
EntryPointsInstance = EntryPoints;
EntryPointNamesInstance = EntryPointNames;
}
#endregion

View file

@ -42,6 +42,22 @@ namespace OpenTK.Graphics.OpenGL4
const string Library = "opengl32.dll";
static readonly object sync_root = new object();
static IntPtr[] EntryPoints;
static string[] EntryPointNames;
#region Constructors
/// <summary>
/// Constructs a new instance.
/// </summary>
public GL()
{
EntryPointsInstance = EntryPoints;
EntryPointNamesInstance = EntryPointNames;
}
#endregion
#region --- Protected Members ---
/// <summary>