Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Print GL, GLU and GLUT version and extension info
  3. *
  4. * Brian Paul This file in public domain.
  5. * October 3, 1997
  6. */
  7. #include <stdio.h>
  8. #include <GL/glut.h>
  9. int main( int argc, char *argv[] )
  10. {
  11. glutInit( &argc, argv );
  12. glutInitDisplayMode( GLUT_RGB );
  13. glutCreateWindow(argv[0]);
  14. printf("GL_VERSION: %s\n", (char *) glGetString(GL_VERSION));
  15. printf("GL_EXTENSIONS: %s\n", (char *) glGetString(GL_EXTENSIONS));
  16. printf("GL_RENDERER: %s\n", (char *) glGetString(GL_RENDERER));
  17. printf("GL_VENDOR: %s\n", (char *) glGetString(GL_VENDOR));
  18. printf("GLU_VERSION: %s\n", (char *) gluGetString(GLU_VERSION));
  19. printf("GLU_EXTENSIONS: %s\n", (char *) gluGetString(GLU_EXTENSIONS));
  20. printf("GLUT_API_VERSION: %d\n", GLUT_API_VERSION);
  21. #ifdef GLUT_XLIB_IMPLEMENTATION
  22. printf("GLUT_XLIB_IMPLEMENTATION: %d\n", GLUT_XLIB_IMPLEMENTATION);
  23. #endif
  24. return 0;
  25. }