#ifndef RENDER_H_ #define RENDER_H_ #pragma warning(disable: 4786) #include #include #include #include "OBJParser.h" using namespace std; class Render { void showInput(); public: int Xres,Yres; string objfile; int ps[6]; int rx,ry,rz,ux,uy,uz,vx,vy,vz,nx,ny,nz; float sx,sy,sz; float tx,ty,tz; float thx,thy,thz; Render(); virtual ~Render(); void getTokens(string&, string&, vector&); void input(char *fileName); string getObjfileName(); int getXres(); int getYres(); Vertex rotationRx(Vertex v); Vertex rotationRy(Vertex v); Vertex rotationRz(Vertex v); Vertex trans(Vertex v); Vertex scale(Vertex v); Vertex camera(Vertex v); Vertex perspective(Vertex v); Vertex rtscp(Vertex v); void viewWindow(Vertex v,int *x,int *y); void outputV(Vertex v1) { cout< void convertFromString(T &value, const std::string &s) { std::stringstream ss(s); ss >> value; } #endif /*RENDER_H_*/