//#define GL_GLEXT_PROTOTYPES #include #include #include #include #include void init(void) { glEdgeFlag(GL_FALSE); GLboolean val; glGetBooleanv(GL_EDGE_FLAG, &val); if (val == GL_FALSE) { printf("Was false"); } else if (val == GL_TRUE) { printf("Was true"); } else { printf("was %i", val); } } 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; }