- glutInitWindowSize(1280, 800);
- glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_SRGB | GLUT_MULTISAMPLE);
- glutCreateWindow("demo");
+
+ read_cfg("demo.cfg");
+ if(parse_args(argc, argv) == -1) {
+ return 1;
+ }
+ if(opt.srgb) glut_flags |= GLUT_SRGB;
+ if(opt.msaa) glut_flags |= GLUT_MULTISAMPLE;
+
+ glutInitWindowSize(opt.width, opt.height);
+ glutInitDisplayMode(glut_flags);
+ glutCreateWindow("Prior Art / Mindlapse");