Hooked up new loading mechanism
authorStefanos A. <stapostol@gmail.com>
Sun, 24 Nov 2013 12:58:30 +0000 (13:58 +0100)
committerStefanos A. <stapostol@gmail.com>
Sun, 24 Nov 2013 12:58:30 +0000 (13:58 +0100)
Source/OpenTK/Graphics/ES10/Helper.cs
Source/OpenTK/Graphics/ES11/Helper.cs
Source/OpenTK/Graphics/ES20/Helper.cs
Source/OpenTK/Graphics/ES30/Helper.cs
Source/OpenTK/Graphics/OpenGL/GLHelper.cs
Source/OpenTK/Graphics/OpenGL4/Helper.cs

index 16f87c7c25b9a125a4776db618a60d6f2aaae571..8dbfd270b3f686e47150aeb3fdc7432e602fe1a2 100644 (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
+        }
     }
 }
index 4037c0eb38afa33cd347c55684d688ef212e1507..57629fdd9c557aa8eef4807fe098509fbb8efbe3 100644 (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>
index 0b7e5198448f2c7bd0b61af6813a851a4e25a5dc..8c6af40eb923b69e60182cba56b82e0758af317c 100644 (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>
index 4973cca91e85503b24e0563f9d619194985fb1ba..2d2e977f9cca1a31ba7d34cb7d846836227805c6 100644 (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>
index 789db93dbcd86ffbbb76253bfacaf5891590370e..13386f52701c3c892ee8f2f2a52896be94ad0c8a 100644 (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
index f37fcf7687439a6b8ab1cf1a3bf86747f19ee1e5..e4a7ee5c2920e3c5a665a131d37ad1c1298d51a7 100644 (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>