void Stencil2Test::runOne(Stencil2Result &r, Window &w) { (void) w; // silence warning r.pass = true; get_ext_functions(); // how many stencil bits (we assume at least 8 above) glGetIntegerv(GL_STENCIL_BITS, &stencilBits); stencilMax = (1 << stencilBits) - 1; assert(stencilBits >= 8); glViewport(0, 0, windowSize, windowSize); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, windowSize, 0, windowSize, -1, 1); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); if (have_ATI_separate_stencil()) { r.pass &= test_stencil(ATI); } if (have_EXT_stencil_two_side()) { r.pass &= test_stencil(EXT); } if (have_GL2_stencil_two_side()) { r.pass &= test_stencil(GL2); } }
int main(int argc, char *argv[]) { TEST_START(); TEST(test_stencil()); TEST_END(); return 0; }
int main(int argc, char *argv[]) { display = get_display(); /* get an appropriate EGL frame buffer configuration */ ECHK(eglChooseConfig(display, config_attribute_list, &config, 1, &num_config)); DEBUG_MSG("num_config: %d", num_config); /* create an EGL rendering context */ ECHK(context = eglCreateContext(display, config, EGL_NO_CONTEXT, context_attribute_list)); test_stencil(); ECHK(eglTerminate(display)); }
int main(int argc, char *argv[]) { test_stencil(); }