From a7c9aeee1e68235af406e30654e4b2e5f0f7fda2 Mon Sep 17 00:00:00 2001 From: MatejaMaric Date: Tue, 9 Jul 2019 00:26:42 +0200 Subject: First commit --- source/ObjModel.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 source/ObjModel.h (limited to 'source/ObjModel.h') diff --git a/source/ObjModel.h b/source/ObjModel.h new file mode 100644 index 0000000..9f66867 --- /dev/null +++ b/source/ObjModel.h @@ -0,0 +1,31 @@ +#include"Vertice.h" +#include"Bitmap.h" +#include +#include +#include +#include +#include + +struct Triangle { + int p[3][3]; +}; + +struct Texture_Coordinates { + float u, v; +}; + +class ObjModel +{ +public: + std::vector vertices; + std::vector uvcoo; + std::vector normals; + std::vector faces; + ObjModel(); + ObjModel(std::string fileName); + ObjModel(const ObjModel& a); + ObjModel multiplyMatrix(Matrix4f& a); + void divideW(); + void screenspace(int width, int height); +}; + -- cgit v1.2.3