Lines Matching defs:stencil
24 GLubyte stencil[100 * 100 * 2];
53 /* read the stencil image */
54 glReadPixels(0, 0, 100, 100, GL_STENCIL_INDEX, GL_UNSIGNED_BYTE, stencil);
58 min = max = stencil[0];
60 if (stencil[i] < min)
61 min = stencil[i];
62 if (stencil[i] > max)
63 max = stencil[i];
67 printf("Error: expected max stencil val of %u, found %u\n",
74 glDrawPixels(100, 100, GL_LUMINANCE, GL_UNSIGNED_BYTE, stencil);
84 /* draw stencil image with scaling (into stencil buffer) */
92 glDrawPixels(100, 100, GL_STENCIL_INDEX, GL_UNSIGNED_BYTE, stencil);
98 glDrawPixels(100, 100, GL_STENCIL_INDEX, GL_UNSIGNED_BYTE, stencil);
106 /* read back scaled stencil image */