added command line flags to glewinfo

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@209 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2004-02-01 21:28:36 +00:00
parent d092e87d8e
commit 0993e68be2

View File

@ -9,11 +9,6 @@ int main (int argc, char** argv)
GLuint err;
char* display = NULL;
int visual = -1;
#ifdef _WIN32
const char* visual_str = "PixelFormat";
#else
const char* visual_str = "Visual";
#endif
if (glewParseArgs(argc-1, argv+1, &display, &visual))
{
@ -48,7 +43,11 @@ int main (int argc, char** argv)
fprintf(f, " GLEW Extension Info\n");
fprintf(f, "---------------------------\n\n");
fprintf(f, "GLEW version %s\n", glewGetString(GLEW_VERSION));
fprintf(f, "Reporting capabilities of %s %d\n", visual_str, visual);
#ifdef _WIN32
fprintf(f, "Reporting capabilities of PixelFormat %d\n", visual);
#else
fprintf(f, "Reporting capabilities of Visual %d\n", visual);
#endif
fprintf(f, "Running on a %s from %s\n",
glGetString(GL_RENDERER), glGetString(GL_VENDOR));
fprintf(f, "OpenGL version %s is supported\n", glGetString(GL_VERSION));