Made glfwGetProcAddress return a function pointer.

This commit is contained in:
Camilla Berglund
2012-06-05 00:16:40 +02:00
parent bc8860dc6a
commit bf42c3cfbc
7 changed files with 14 additions and 10 deletions
+4 -1
View File
@@ -470,6 +470,9 @@ extern "C" {
* Typedefs
*************************************************************************/
/* OpenGL function pointer type */
typedef void (*GLFWglproc)(void);
/* Window handle type */
typedef void* GLFWwindow;
@@ -589,7 +592,7 @@ GLFWAPI GLFWwindow glfwGetCurrentContext(void);
GLFWAPI void glfwSwapBuffers(void);
GLFWAPI void glfwSwapInterval(int interval);
GLFWAPI int glfwExtensionSupported(const char* extension);
GLFWAPI void* glfwGetProcAddress(const char* procname);
GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname);
GLFWAPI void glfwCopyContext(GLFWwindow src, GLFWwindow dst, unsigned long mask);