diff test/testdyngl.c @ 3323:8d0889509afb

Added renderer information for dynamic OpenGL test
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Sep 2009 15:32:19 +0000
parents 204be4fc2726
children
line wrap: on
line diff
--- a/test/testdyngl.c	Sun Sep 27 23:24:58 2009 +0000
+++ b/test/testdyngl.c	Mon Sep 28 15:32:19 2009 +0000
@@ -68,6 +68,7 @@
     void (APIENTRY * glRotatef) (GLfloat, GLfloat, GLfloat, GLfloat);
     void (APIENTRY * glViewport) (GLint, GLint, GLsizei, GLsizei);
     void (APIENTRY * glFogf) (GLenum, GLfloat);
+    const GLubyte* (APIENTRY * glGetString) (GLenum);
 }
 glfuncs;
 
@@ -91,6 +92,12 @@
     f->glRotatef = get_funcaddr("glRotatef");
     f->glViewport = get_funcaddr("glViewport");
     f->glFogf = get_funcaddr("glFogf");
+    f->glGetString = get_funcaddr("glGetString");
+
+    printf("Vendor     : %s\n", f->glGetString(GL_VENDOR));
+    printf("Renderer   : %s\n", f->glGetString(GL_RENDERER));
+    printf("Version    : %s\n", f->glGetString(GL_VERSION));
+    printf("Extensions : %s\n", f->glGetString(GL_EXTENSIONS));
 }
 
 #define NB_PIXELS 1000