Created
December 12, 2014 00:39
-
-
Save datenwolf/e050cd596b7d4b3bf891 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <GL/glut.h> | |
#define local_GL_MAX_3D_TEXTURE_SIZE 0x8073 | |
int main(int argc, char *argv[]) | |
{ | |
glutInit(&argc, argv); | |
glutInitDisplayMode(GLUT_RGBA | GLUT_DEPTH | GLUT_STENCIL | GLUT_DOUBLE); | |
glutCreateWindow("Max 3D texture size"); | |
GLint max_texture_size, max_3d_texture_size; | |
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_texture_size); | |
glGetIntegerv(local_GL_MAX_3D_TEXTURE_SIZE, &max_3d_texture_size); | |
printf( | |
"{\n" | |
" \"r\":\"%s\",\n" | |
" \"v\":\"%s\",\n" | |
" \"tm\":%d,\n" | |
" \"t3\":%d,\n" | |
"}\n", | |
glGetString(GL_RENDERER), | |
glGetString(GL_VERSION), | |
max_texture_size, | |
max_3d_texture_size ); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment