Assignments
Assignments
main4.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <Util/cmdLineParser.h>
#include <Ray/scene.h>
#include <Ray/window.h>
#include <Ray/box.h>
#include <Ray/cone.h>
#include <Ray/cylinder.h>
#include <Ray/sphere.h>
#include <Ray/torus.h>
#include <Ray/triangle.h>
#include <Ray/fileInstance.h>
#include <Ray/directionalLight.h>
#include <Ray/pointLight.h>
#include <Ray/spotLight.h>
#include <Ray/sphereLight.h>

Functions

void ShowUsage (const string &ex)
 
int main (int argc, char *argv[])
 

Variables

CmdLineParameter< string > InputRayFile ("in")
 
CmdLineParameter< int > ParameterType ("parameter", RotationParameters::TRIVIAL+1)
 
CmdLineParameter< int > InterpolantType ("interpolant", Interpolation::NEAREST+1)
 
CmdLineParameter< int > WindowWidth ("width", 640)
 
CmdLineParameter< int > WindowHeight ("height", 480)
 
CmdLineParameter< int > Complexity ("cplx", 10)
 
CmdLineReadableparams []
 

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

◆ ShowUsage()

void ShowUsage ( const string & ex)

Variable Documentation

◆ Complexity

CmdLineParameter< int > Complexity("cplx", 10) ( "cplx" ,
10  )

◆ InputRayFile

CmdLineParameter< string > InputRayFile("in") ( "in" )

◆ InterpolantType

CmdLineParameter< int > InterpolantType("interpolant", Interpolation::NEAREST+1) ( "interpolant" ,
Interpolation::NEAREST+ 1 )

◆ ParameterType

CmdLineParameter< int > ParameterType("parameter", RotationParameters::TRIVIAL+1) ( "parameter" ,
RotationParameters::TRIVIAL+ 1 )

◆ params

CmdLineReadable* params[]
Initial value:
=
{
NULL
}
CmdLineParameter< int > WindowWidth("width", 640)
CmdLineParameter< int > Complexity("cplx", 10)
CmdLineParameter< string > InputRayFile("in")
CmdLineParameter< int > InterpolantType("interpolant", Interpolation::NEAREST+1)
CmdLineParameter< int > ParameterType("parameter", RotationParameters::TRIVIAL+1)
CmdLineParameter< int > WindowHeight("height", 480)

◆ WindowHeight

CmdLineParameter< int > WindowHeight("height", 480) ( "height" ,
480  )

◆ WindowWidth

CmdLineParameter< int > WindowWidth("width", 640) ( "width" ,
640  )