bring back the triangle

This commit is contained in:
David Rose 2002-04-11 18:39:23 +00:00
parent 51b8232d16
commit 9bbc23202a

View File

@ -30,7 +30,12 @@ main(int argc, char *argv[]) {
window->enable_keyboard(); window->enable_keyboard();
window->setup_trackball(); window->setup_trackball();
window->load_models(window->get_render(), argc, argv); if (argc < 2) {
// If we have no arguments, get that trusty old triangle out.
window->load_default_model(window->get_render());
} else {
window->load_models(window->get_render(), argc, argv);
}
window->loop_animations(); window->loop_animations();
framework.enable_default_keys(); framework.enable_default_keys();