Lines Matching defs:SIZE
47 #define SIZE 16
49 GLubyte tex3d[SIZE][SIZE][SIZE][3];
52 for (s = 0; s < SIZE; s++) {
53 for (t = 0; t < SIZE; t++) {
54 for (r = 0; r < SIZE; r++) {
56 tex3d[r][t][s][0] = (s < SIZE/2) ? 0 : 255;
57 tex3d[r][t][s][1] = (t < SIZE/2) ? 0 : 255;
58 tex3d[r][t][s][2] = (r < SIZE/2) ? 0 : 255;
60 tex3d[r][t][s][0] = s*255/(SIZE-1);
61 tex3d[r][t][s][1] = t*255/(SIZE-1);
62 tex3d[r][t][s][2] = r*255/(SIZE-1);
74 glTexImage3D(GL_TEXTURE_3D, 0, 3, SIZE, SIZE, SIZE, 0,