Definition at line 136 of file mainAnnoVidSet.cpp. References Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), ILOG_ERROR, ILOG_VAR, Impala::CmdOptions::Initialise(), Impala::Application::DemoCamera2d::oglWnd, Impala::CmdOptions::ParseArgs(), Impala::CmdOptions::SetDefault(), and OglGui::OglWindow::Valid(). Referenced by main(). 00137 { 00138 OglInit(&argc, &argv[0]); 00139 00140 CmdOptions& options = CmdOptions::GetInstance(); 00141 00142 options.Initialise(true, false, true); 00143 options.SetDefault("wndWidth", "1272"); 00144 options.SetDefault("wndHeight", "955"); 00145 if (! options.ParseArgs(argc, argv, "", 0)) 00146 return 1; 00147 /* 00148 std::vector<char> keyBinding; 00149 keyBinding.push_back(GetKeyBinding("forward", "0")); 00150 keyBinding.push_back(GetKeyBinding("backward", "9")); 00151 keyBinding.push_back(GetKeyBinding("positive", "1")); 00152 keyBinding.push_back(GetKeyBinding("skip", "2")); 00153 keyBinding.push_back(GetKeyBinding("negative", "3")); 00154 keyBinding.push_back(GetKeyBinding("shotpositive", "6")); 00155 keyBinding.push_back(GetKeyBinding("shotnegative", "7")); 00156 keyBinding.push_back(GetKeyBinding("togglePlay", " ")); 00157 */ 00158 ILOG_VAR(Application.mainAnnoVidSet); 00159 00160 int reqWndWidth = options.GetInt("wndWidth"); 00161 int reqWndHeight = options.GetInt("wndHeight"); 00162 WindowAnnoVidSet* oglWnd = 00163 new WindowAnnoVidSet(reqWndWidth, reqWndHeight); 00164 if (! oglWnd->Valid()) 00165 { 00166 ILOG_ERROR("WindowAnnoVidSet failed"); 00167 return 1; 00168 } 00169 return 0; 00170 }
Here is the call graph for this function:
|