From 5c9857e9a1c797bd742e1ad3456ff2ae467de7ea Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 22 Jan 2009 01:29:35 +0000 Subject: [PATCH] added a few scene options to the scene_options map for Scene to deal with git-svn-id: svn://anubis/fart/trunk@22 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- main/fart.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main/fart.cc b/main/fart.cc index a048ad5..67e0205 100644 --- a/main/fart.cc +++ b/main/fart.cc @@ -4,6 +4,8 @@ #include #include #include +#include +#include using namespace std; void usage(const char * progname) @@ -22,6 +24,7 @@ int main(int argc, char * argv[]) { int opt; int option_index; + map scene_options; static const struct option long_options[] = { { "output-file", required_argument, NULL, 'o' }, @@ -38,14 +41,19 @@ int main(int argc, char * argv[]) switch (opt) { case 'o': + scene_options["output-file"] = optarg; break; case 'w': + scene_options["width"] = optarg; break; case 'h': + scene_options["height"] = optarg; break; case 'm': + scene_options["multisample"] = optarg; break; case 'v': + scene_options["verbose"] = optarg; break; default: usage(argv[0]);