glutInit(&argc, argv); glutInitContextVersion( 3, 0 ); glutInitDisplayMode (GLUT_DOUBLE|GLUT_RGB); glutInitWindowSize (400, 300); glutCreateWindow ("Texture test"); printf("OpenGL vendor (%s): \n", glGetString(GL_VENDOR)); printf("OpenGL renderer (%s): \n", glGetString(GL_RENDERER)); printf("OpenGL version (%s): \n", glGetString(GL_VERSION)); printf("OpenGLSL version (%s): \n", glGetString(GL_SHADING_LANGUAGE_VERSION)); int major = 0; glGetIntegerv(GL_MAJOR_VERSION, &major); printf("OpenGL major version (%d): \n", major); int minor = 0; glGetIntegerv(GL_MINOR_VERSION, &minor); printf("OpenGL minor version (%d): \n", minor); int num_glsls = 0; glGetIntegerv(GL_NUM_SHADING_LANGUAGE_VERSIONS, &num_glsls); printf("GLSL versions supported by this platform: %d \n", num_glsls); for (int i = 0; i < num_glsls; i++) { printf("OpenGLSL versions supported by this platform %d (%s): \n", i, glGetStringi(GL_SHADING_LANGUAGE_VERSION, i)); }