Lines Matching refs:opt

93 void initoptions(argoptions *opt) {  in initoptions()  argument
94 memset(opt, 0, sizeof(argoptions)); in initoptions()
95 opt->foundfilename = -1; in initoptions()
96 opt->useoutfilename = -1; in initoptions()
97 opt->verbosemode = -1; in initoptions()
98 opt->antialiasing = -1; in initoptions()
99 opt->displaymode = -1; in initoptions()
100 opt->boundmode = -1; in initoptions()
101 opt->boundthresh = -1; in initoptions()
102 opt->usecamfile = -1; in initoptions()
246 int useoptions(argoptions *opt, SceneHandle scene) { in useoptions() argument
247 if (opt->useoutfilename == 1) { in useoptions()
248 rt_outputfile(scene, opt->outfilename); in useoptions()
251 if (opt->verbosemode == 1) { in useoptions()
255 if (opt->antialiasing != -1) { in useoptions()
259 if (opt->displaymode != -1) { in useoptions()
260 rt_displaymode(scene, opt->displaymode); in useoptions()
263 if (opt->boundmode != -1) { in useoptions()
264 rt_boundmode(scene, opt->boundmode); in useoptions()
267 if (opt->boundthresh != -1) { in useoptions()
268 rt_boundthresh(scene, opt->boundthresh); in useoptions()
275 argoptions opt; in ParseCommandLine() local
277 initoptions(&opt); in ParseCommandLine()
289 .positional_arg(opt.boundthresh, "boundthresh", "bounding threshold value") in ParseCommandLine()
294 strcpy(opt.filename, filename.c_str()); in ParseCommandLine()
296 opt.displaymode = nodisp ? RT_DISPLAY_DISABLED : RT_DISPLAY_ENABLED; in ParseCommandLine()
297 opt.boundmode = nobounding ? RT_BOUNDING_DISABLED : RT_BOUNDING_ENABLED; in ParseCommandLine()
299 return opt; in ParseCommandLine()
302 int CreateScene(argoptions &opt) { in CreateScene() argument
309 useoptions(&opt, global_scene); in CreateScene()
318 if (opt.foundfilename == -1) in CreateScene()
322 filename = opt.filename; in CreateScene()
347 argoptions opt = ParseCommandLine(argc, (const char **)argv); in main() local
349 if (CreateScene(opt) != 0) in main()