add {glx,egl}2test using the GL2 API in a classic OpenGL context
[gltest.git] / glutil.h
index e7a39ad86ddad3652191b6b2b254b21cdb1c8c6b..688ee2995d46311b25c0c15cc69ec9e9fe434109 100644 (file)
--- a/glutil.h
+++ b/glutil.h
 #include <GL/gl.h>
 #endif
 
+/* Function name resolving: Call this after initialising the context, but before any utility function is called */
+typedef void (*T_proc)(void);
+typedef T_proc (*T_glGetProcAddress)(char const *  procname);
+void resolveFunctionPointers(T_glGetProcAddress p_glGetProcAddress);
+
+/* The actual utility functions */
 void initialise2dProjection();
 void drawQuad(GLfloat red, GLfloat green, GLfloat blue, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);