TinyRaytracer 0.1
A simple C++ raytracer
Loading...
Searching...
No Matches
Functions | Variables
parse.cpp File Reference
#include "../include/all.hpp"
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <climits>
#include <memory>

Functions

void parseInput (char *argv[])
 
void parseLine (std::vector< std::string > words)
 

Variables

int width = 0
 
int height = 0
 
std::string filename = "file.txt"
 
RGB color = {1.0,1.0,1.0}
 
int bounces = 4
 
int aa = 0
 
double dof_focus = 0
 
double dof_lens = 0
 
vec3 forward (0.0, 0.0,-1.0)
 
vec3 right (1.0, 0.0, 0.0)
 
vec3 up (0.0, 1.0, 0.0)
 
point3 eye = {0.0,0.0,0.0}
 
vec3 target_up (0.0, 1.0, 0.0)
 
double expose = INT_MAX
 
bool fisheye = false
 
bool panorama = false
 
double ior = 1.458
 
double rough = 0
 
int gi = 0
 
RGB trans
 
RGB shine
 
std::string texture = "none"
 
Texcoord texcoord
 
std::vector< shared_ptr< Object > > objects = {}
 
shared_ptr< Objectbvh_head = nullptr
 
std::vector< Sunsun = {}
 
std::vector< Bulbbulbs = {}
 
std::vector< Planeplanes = {}
 
std::vector< Vertexvertices
 
std::vector< Triangletriangles
 

Detailed Description

Author
Jin (jinj2.nosp@m.@ill.nosp@m.inois.nosp@m..edu)
Version
0.1
Date
2024-11-06