Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added renderer information for dynamic OpenGL test
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 28, 2009
1 parent 82d28d0 commit ad63024
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/testdyngl.c
Expand Up @@ -68,6 +68,7 @@ typedef struct
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;

Expand All @@ -91,6 +92,12 @@ init_glfuncs(glfuncs * f)
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
Expand Down

0 comments on commit ad63024

Please sign in to comment.