test/testdyngl.c
changeset 3323 8d0889509afb
parent 2735 204be4fc2726
child 5535 96594ac5fd1a
     1.1 --- a/test/testdyngl.c	Sun Sep 27 23:24:58 2009 +0000
     1.2 +++ b/test/testdyngl.c	Mon Sep 28 15:32:19 2009 +0000
     1.3 @@ -68,6 +68,7 @@
     1.4      void (APIENTRY * glRotatef) (GLfloat, GLfloat, GLfloat, GLfloat);
     1.5      void (APIENTRY * glViewport) (GLint, GLint, GLsizei, GLsizei);
     1.6      void (APIENTRY * glFogf) (GLenum, GLfloat);
     1.7 +    const GLubyte* (APIENTRY * glGetString) (GLenum);
     1.8  }
     1.9  glfuncs;
    1.10  
    1.11 @@ -91,6 +92,12 @@
    1.12      f->glRotatef = get_funcaddr("glRotatef");
    1.13      f->glViewport = get_funcaddr("glViewport");
    1.14      f->glFogf = get_funcaddr("glFogf");
    1.15 +    f->glGetString = get_funcaddr("glGetString");
    1.16 +
    1.17 +    printf("Vendor     : %s\n", f->glGetString(GL_VENDOR));
    1.18 +    printf("Renderer   : %s\n", f->glGetString(GL_RENDERER));
    1.19 +    printf("Version    : %s\n", f->glGetString(GL_VERSION));
    1.20 +    printf("Extensions : %s\n", f->glGetString(GL_EXTENSIONS));
    1.21  }
    1.22  
    1.23  #define NB_PIXELS 1000