1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
/*
* getargs.h - command line argument parsing for Tachyon
*
* $Id: getargs.h,v 1.25 2011/02/04 16:06:03 johns Exp $
*/
typedef struct {
char **filenames; /**< list of model files to render */
int numfiles; /**< number of files to render */
int useoutfilename; /**< override output filename */
char outfilename[FILENAME_MAX]; /**< name of output image file */
int outimageformat; /**< format of output image */
int verbosemode; /**< verbose flags */
int ray_maxdepth; /**< maximum ray recursion depth */
int aa_maxsamples; /**< antialiasing setting */
int boundmode; /**< bounding mode */
int boundthresh; /**< bounding threshold */
int usecamfile; /**< use camera file */
char camfilename[FILENAME_MAX]; /**< camera filename */
int shadermode; /**< quality level */
int phongfunc; /**< shader for specular highlights */
int transmode; /**< transparency rendering mode */
int transcount; /**< max transparent surfaces to render */
int shadow_filtering; /**< transparent surface shadowing mode */
int fogmode; /**< fog rendering mode */
int numthreads; /**< explicit number of threads to use */
int nosave; /**< don't write output image to disk */
int xsize; /**< override default image x resolution */
int ysize; /**< override default image y resolution */
int normalfixupmode; /**< override normal fixup mode */
int imgprocess; /**< image post processing flags */
float imggamma; /**< image gamma correction factor */
float rescale_lights; /**< direct lighting rescaling factor */
float auto_skylight; /**< automatic ambient occlusion lighting */
float add_skylight; /**< ambient occlusion lighting factor */
int skylight_samples; /**< number of ambient occlusion samples */
int spaceballon; /**< spaceball input enabled */
char spaceballport[FILENAME_MAX]; /**< spaceball serial port device */
int cropmode; /**< post rendering image crop (SPECMPI) */
int cropxres;
int cropyres;
int cropxstart;
int cropystart;
} argoptions;
int getargs(int argc, char **argv, argoptions * opt, int node);
int presceneoptions(argoptions * opt, SceneHandle scene);
int postsceneoptions(argoptions * opt, SceneHandle scene);
void freeoptions(argoptions * opt);
|