#include #include #include #include #include #define WINDSIZEX 100 #define WINDSIZEY 100 #define TEXSIZE 64 void init (void) { int i; GLfloat white[] = { 1.0, 1.0, 1.0, 1.0 }; glClearColor (0.0, 0.0, 0.0, 1.0); glColor4fv (white); glDisable (GL_DITHER); } static void test (void) { int maxzoffset = -1; glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &maxzoffset); printf ("%s\n", gluErrorString (glGetError ())); printf("maxzoffset = %d\n", maxzoffset); } void display (void) { glMatrixMode (GL_PROJECTION); glLoadIdentity (); gluOrtho2D (0, WINDSIZEX, 0, WINDSIZEX); test (); } int main (int argc, char **argv) { glutInit (&argc, argv); glutInitDisplayMode (GLUT_SINGLE | GLUT_RGBA); glutInitWindowSize (WINDSIZEX, WINDSIZEY); glutInitWindowPosition (100, 100); glutCreateWindow (argv[0]); init (); glutDisplayFunc (display); glutMainLoop (); return 0; }