#define GL_GLEXT_PROTOTYPES #include #include #include #include #include void init(void) { GLfloat s, o; glPolygonOffsetEXT(1.0, 2.0); glEnable(GL_POLYGON_OFFSET_EXT); glGetFloatv(GL_POLYGON_OFFSET_FACTOR_EXT, &s); glGetFloatv(GL_POLYGON_OFFSET_BIAS_EXT, &o); printf("factor=%g bias=%g\n", s, o); } int main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB | GLUT_DEPTH); glutInitWindowSize (500, 500); glutInitWindowPosition (100, 100); glutCreateWindow(argv[0]); init(); return 0; }