1 2 3 typedef struct { 4 char **filenames; /* list of model files to render */ 5 int numfiles; /* number of files to render */ 6 int useoutfilename; /* command line override of output filename */ 7 char outfilename[FILENAME_MAX]; /* name of output image file */ 8 int outimageformat; /* format of output image */ 9 int verbosemode; /* verbose flags */ 10 int aa_maxsamples; /* antialiasing setting */ 11 int boundmode; /* bounding mode */ 12 int boundthresh; /* bounding threshold */ 13 int usecamfile; /* use camera file */ 14 char camfilename[FILENAME_MAX]; /* camera filename */ 15 int shadermode; /* quality level */ 16 int phongfunc; /* shader for specular highlights */ 17 int transmode; /* transparency rendering mode */ 18 int fogmode; /* fog rendering mode */ 19 int numthreads; /* explicit number of threads to use */ 20 int nosave; /* don't write output image to disk */ 21 int xsize; /* override default image x resolution */ 22 int ysize; /* override default image y resolution */ 23 int normalfixupmode; /* override normal fixup mode */ 24 int imgprocess; /* image post processing flags */ 25 float imggamma; /* image gamma correction factor */ 26 float rescale_lights; /* rescale all lights by supplied factor */ 27 float auto_skylight; /* automatic ambient occlusion lighting */ 28 float add_skylight; /* manual ambient occlusion lighting */ 29 int skylight_samples; /* number of ambient occlusion samples */ 30 char spaceball[FILENAME_MAX]; /* spaceball serial port device */ 31 int cropmode; /* post rendering image crop (SPECMPI) */ 32 int cropxres; 33 int cropyres; 34 int cropxstart; 35 int cropystart; 36 } argoptions; 37 38 int getargs(int argc, char **argv, argoptions * opt, int node); 39 int presceneoptions(argoptions * opt, SceneHandle scene); 40 int postsceneoptions(argoptions * opt, SceneHandle scene); 41 void freeoptions(argoptions * opt); 42