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