blob: 63d49efa6f5e5c8a54b3d3ad5e5e0e376868b323 (
plain) (
tree)
|
|
#include"Vertice.h"
#include"Bitmap.h"
#include<vector>
#include<string>
#include<sstream>
#include<fstream>
#include<exception>
#include<chrono>
struct Triangle {
int p[3][3];
};
struct Texture_Coordinates {
float u, v;
};
class ObjModel
{
public:
std::vector<Vertice> vertices;
std::vector<Texture_Coordinates> uvcoo;
std::vector<Vector4f> normals;
std::vector<Triangle> faces;
bool isLoaded;
std::chrono::duration<double> loadingTime;
ObjModel();
ObjModel(std::string fileName);
ObjModel(const ObjModel& a);
ObjModel multiplyMatrix(Matrix4f& a);
void divideW();
void screenspace(int width, int height);
};
|