2 #define GL_GLEXT_PROTOTYPES 1
6 #if !defined(GL_VERSION_3_0) || !GL_VERSION_3_0
7 #error "OpenGL version 3.0 required"
10 int main(int argc, char **argv)
14 glutInit(&argc, argv);
15 glutCreateWindow("ext-by-index");
17 glGetIntegerv(GL_NUM_EXTENSIONS, &num_ext);
18 printf("Extensions:\n");
19 for(i=0; i<num_ext; i++) {
20 printf("%d: %s\n", i, (char*)glGetStringi(GL_EXTENSIONS, i));