specter.cc File Reference

This is the mainline routine for the whole ray tracer. More...

#include "Background.h"
#include "Camera.h"
#include "ConstantBackground.h"
#include "Color.h"
#include "Group.h"
#include "Image.h"
#include "LambertianMaterial.h"
#include "Light.h"
#include "Material.h"
#include "Object.h"
#include "PinholeCamera.h"
#include "Plane.h"
#include "PointLight.h"
#include "Ray.h"
#include "Scene.h"
#include "Sphere.h"
#include "Time.h"
#include "Parser.h"
#include <iomanip>
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <string.h>

Go to the source code of this file.

Functions

int getopt ()
void usage (char *s)
int parse_args (int ac, char *av[])
int main (int argc, char **argv)

Variables

char * options = "hb:"
char * optarg
int optind
int opterr
char * progname = "(noname)"
int xpixel
int ypixel
bool one_only


Detailed Description

This is the mainline routine for the whole ray tracer.

Definition in file specter.cc.


Function Documentation

int getopt  ) 
 

Referenced by parse_args().

int main int  argc,
char **  argv
 

Definition at line 91 of file specter.cc.

References Time::currentSeconds(), and parse_args().

int parse_args int  ac,
char *  av[]
 

P A R S E _ A R G S --- Parse through command line flags

Definition at line 62 of file specter.cc.

References getopt(), one_only, optarg, opterr, optind, options, progname, usage(), xpixel, and ypixel.

Referenced by main().

void usage char *  s  ) 
 

U S A G E --- tell user how to invoke this program, then exit

Definition at line 50 of file specter.cc.

References options, and progname.

Referenced by parse_args().


Variable Documentation

bool one_only
 

Definition at line 44 of file specter.cc.

Referenced by parse_args(), and Scene::render().

char* optarg
 

Referenced by parse_args().

int opterr
 

Referenced by parse_args().

int optind
 

Referenced by parse_args().

char* options = "hb:"
 

Definition at line 36 of file specter.cc.

Referenced by parse_args(), and usage().

char* progname = "(noname)"
 

Definition at line 40 of file specter.cc.

Referenced by parse_args(), and usage().

int xpixel
 

Definition at line 42 of file specter.cc.

Referenced by parse_args(), and Scene::render().

int ypixel
 

Definition at line 43 of file specter.cc.

Referenced by parse_args(), and Scene::render().


Generated on Tue Jan 29 21:34:55 2008 for specter by  doxygen 1.4.6