mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-23 07:05:07 +00:00
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:
parent
d092e87d8e
commit
0993e68be2
@ -9,11 +9,6 @@ int main (int argc, char** argv)
|
|||||||
GLuint err;
|
GLuint err;
|
||||||
char* display = NULL;
|
char* display = NULL;
|
||||||
int visual = -1;
|
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))
|
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, " GLEW Extension Info\n");
|
||||||
fprintf(f, "---------------------------\n\n");
|
fprintf(f, "---------------------------\n\n");
|
||||||
fprintf(f, "GLEW version %s\n", glewGetString(GLEW_VERSION));
|
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",
|
fprintf(f, "Running on a %s from %s\n",
|
||||||
glGetString(GL_RENDERER), glGetString(GL_VENDOR));
|
glGetString(GL_RENDERER), glGetString(GL_VENDOR));
|
||||||
fprintf(f, "OpenGL version %s is supported\n", glGetString(GL_VERSION));
|
fprintf(f, "OpenGL version %s is supported\n", glGetString(GL_VERSION));
|
||||||
|
Loading…
Reference in New Issue
Block a user