first commit
This commit is contained in:
34
CS4451/proj4/FileReader.h
Normal file
34
CS4451/proj4/FileReader.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef _FILEREADER_H_
|
||||
#define _FILEREADER_H_
|
||||
|
||||
#include <vector>
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
||||
#include "Renderer.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
/**
|
||||
* File Reader class
|
||||
*/
|
||||
class FileReader {
|
||||
public:
|
||||
void parseFile( vector<Sphere*> *spheres,
|
||||
vector<Triangle*> *triangles,
|
||||
vector<Light*> *lights,
|
||||
Point *viewport, Point *h, Point *v, Point *l, m_float &ambient);
|
||||
void parseFile(Renderer &r);
|
||||
|
||||
|
||||
private:
|
||||
void scanMaterials(MaterialAttributes &attrib, char* input);
|
||||
void scanLight(Light *light, char* input);
|
||||
void scanSphere(Sphere *sphere, char* input);
|
||||
void scanTriangle(Triangle *triangle, char* input);
|
||||
void scanPoint(Point *point, char* input);
|
||||
void scanPrimitives(int count, vector<Sphere*> *spheres,
|
||||
vector<Triangle*> *triangles, char *input);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user