Tachyon (current)
Current Main Branch
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tachyon.h"
#include "getargs.h"
#include "ctype.h"
Go to the source code of this file.
Functions | |
static int | strupncmp (const char *a, const char *b, int n) |
static int | compare (const char *a, const char *b) |
static void | printusage (char **argv) |
static void | initoptions (argoptions *opt) |
int | presceneoptions (argoptions *opt, SceneHandle scene) |
int | postsceneoptions (argoptions *opt, SceneHandle scene) |
static int | getparm (int argc, char **argv, int num, argoptions *opt, int node) |
int | getargs (int argc, char **argv, argoptions *opt, int node) |
void | freeoptions (argoptions *opt) |
|
static |
void freeoptions | ( | argoptions * | opt | ) |
Definition at line 643 of file getargs.c.
References argoptions::filenames, and argoptions::numfiles.
Referenced by main().
int getargs | ( | int | argc, |
char ** | argv, | ||
argoptions * | opt, | ||
int | node | ||
) |
Definition at line 585 of file getargs.c.
References argoptions::filenames, getparm(), initoptions(), argoptions::numfiles, and printusage().
Referenced by main().
|
static |
Definition at line 358 of file getargs.c.
References argoptions::aa_maxsamples, argoptions::add_skylight, argoptions::auto_skylight, argoptions::boundmode, argoptions::boundthresh, argoptions::camfilename, compare(), argoptions::cropmode, argoptions::cropxres, argoptions::cropxstart, argoptions::cropyres, argoptions::cropystart, argoptions::fogmode, argoptions::imggamma, argoptions::imgprocess, argoptions::normalfixupmode, argoptions::nosave, argoptions::numthreads, argoptions::outfilename, argoptions::outimageformat, argoptions::phongfunc, argoptions::ray_maxdepth, argoptions::rescale_lights, RT_BOUNDING_DISABLED, RT_FOG_NORMAL, RT_FOG_VMD, RT_FORMAT_JPEG, RT_FORMAT_PNG, RT_FORMAT_PPM, RT_FORMAT_PPM48, RT_FORMAT_PSD48, RT_FORMAT_SGIRGB, RT_FORMAT_TARGA, RT_FORMAT_WINBMP, RT_NORMAL_FIXUP_FLIP, RT_NORMAL_FIXUP_GUESS, RT_NORMAL_FIXUP_OFF, RT_SHADER_BLINN, RT_SHADER_BLINN_FAST, RT_SHADER_FULL, RT_SHADER_LOW, RT_SHADER_LOWEST, RT_SHADER_MEDIUM, RT_SHADER_NULL_PHONG, RT_SHADER_PHONG, RT_TRANS_ORIG, RT_TRANS_RASTER3D, RT_TRANS_VMD, argoptions::shadermode, argoptions::shadow_filtering, argoptions::skylight_maxdist, argoptions::skylight_samples, argoptions::spaceballon, argoptions::spaceballport, argoptions::transcount, argoptions::transmode, argoptions::usecamfile, argoptions::useoutfilename, argoptions::verbosemode, argoptions::xsize, and argoptions::ysize.
Referenced by getargs().
|
static |
Definition at line 142 of file getargs.c.
References argoptions::aa_maxsamples, argoptions::add_skylight, argoptions::auto_skylight, argoptions::boundmode, argoptions::boundthresh, argoptions::cropmode, argoptions::cropxres, argoptions::cropxstart, argoptions::cropyres, argoptions::cropystart, argoptions::filenames, argoptions::fogmode, argoptions::imggamma, argoptions::imgprocess, argoptions::normalfixupmode, argoptions::nosave, argoptions::numfiles, argoptions::numthreads, argoptions::outimageformat, argoptions::phongfunc, argoptions::ray_maxdepth, argoptions::rescale_lights, RT_AO_MAXDIST_UNLIMITED, argoptions::shadermode, argoptions::shadow_filtering, argoptions::skylight_maxdist, argoptions::skylight_samples, argoptions::transcount, argoptions::transmode, argoptions::usecamfile, argoptions::useoutfilename, argoptions::verbosemode, argoptions::xsize, and argoptions::ysize.
Referenced by getargs().
int postsceneoptions | ( | argoptions * | opt, |
SceneHandle | scene | ||
) |
Definition at line 189 of file getargs.c.
References argoptions::aa_maxsamples, argoptions::add_skylight, argoptions::auto_skylight, apicolor::b, argoptions::boundmode, argoptions::boundthresh, argoptions::cropmode, argoptions::cropxres, argoptions::cropxstart, argoptions::cropyres, argoptions::cropystart, argoptions::fogmode, apicolor::g, argoptions::imggamma, argoptions::imgprocess, argoptions::nosave, argoptions::numfiles, argoptions::numthreads, argoptions::outfilename, argoptions::outimageformat, argoptions::phongfunc, apicolor::r, argoptions::ray_maxdepth, argoptions::rescale_lights, rt_aa_maxsamples(), rt_ambient_occlusion(), rt_boundmode(), rt_boundthresh(), rt_camera_raydepth(), rt_crop_output(), rt_fog_rendering_mode(), RT_FORMAT_JPEG, RT_FORMAT_PNG, RT_FORMAT_PPM, RT_FORMAT_PPM48, RT_FORMAT_PSD48, RT_FORMAT_SGIRGB, RT_FORMAT_TARGA, RT_FORMAT_WINBMP, rt_get_resolution(), rt_image_clamp(), rt_image_gamma(), rt_image_normalize(), rt_outputfile(), rt_outputformat(), rt_phong_shader(), rt_rescale_lights(), rt_resolution(), rt_set_numthreads(), rt_shadermode(), rt_shadow_filtering(), rt_trans_max_surfaces(), rt_trans_mode(), rt_verbose(), argoptions::shadermode, argoptions::shadow_filtering, argoptions::skylight_maxdist, argoptions::skylight_samples, argoptions::transcount, argoptions::transmode, argoptions::usecamfile, argoptions::useoutfilename, argoptions::verbosemode, argoptions::xsize, and argoptions::ysize.
Referenced by main().
int presceneoptions | ( | argoptions * | opt, |
SceneHandle | scene | ||
) |
Definition at line 180 of file getargs.c.
References argoptions::normalfixupmode, and rt_normal_fixup_mode().
Referenced by main().
|
static |