FlatMirror *m = new FlatMirror;
m->wplane = mir->wplane;
m->next = planes;
- planes = node;
+ planes = m;
mir->objects.push_back(obj);
objmirror[obj] = mir; // associate with object
false, // vr
false, // fullscreen
0, // scene file
- true // music
+ true, // music
+ true // reflections
};
enum {
OPT_WINDOWED,
OPT_SCENEFILE,
OPT_MUSIC,
+ OPT_REFLECT,
OPT_HELP
};
{'w', "windowed", OPT_WINDOWED, "run in windowed mode"},
{0, "scene", OPT_SCENEFILE, "scene file to open"},
{'m', "music", OPT_MUSIC, "play background audio"},
+ {'r', "reflect", OPT_REFLECT, "render reflections"},
{'h', "help", OPT_HELP, "print usage and exit"},
OPTCFG_OPTIONS_END
};
opt.music = is_enabled(oc);
break;
+ case OPT_REFLECT:
+ opt.reflect = is_enabled(oc);
+ break;
+
case OPT_HELP:
printf("Usage: demo [options]\nOptions:\n");
optcfg_print_options(oc);