#include #include #include #include #define WINDSIZEX 100 #define WINDSIZEY 100 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); } #define TEXTURE_SIZE 4 #define TEXTURE_DEPTH 2 static void test (void) { int i, j; int texName; GLfloat image[TEXTURE_DEPTH * TEXTURE_SIZE * TEXTURE_SIZE * 4]; GLfloat buf[WINDSIZEX * WINDSIZEY * 4]; glClear (GL_COLOR_BUFFER_BIT); glColor3f (1.0, 1.0, 1.0); for (i=0; i