aboutsummaryrefslogtreecommitdiff
path: root/src/Render.h
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-12-27 00:09:34 +0100
committerMateja <mail@matejamaric.com>2020-12-27 00:09:34 +0100
commit0a2da4f82435a49212e276d9d603e84ac298246d (patch)
tree1fea3b94712df18d1229f4f3492b540c90f6f302 /src/Render.h
parenta84debff887c3e3d930665db140b7a287d3879d4 (diff)
downloaderender-0a2da4f82435a49212e276d9d603e84ac298246d.tar.gz
erender-0a2da4f82435a49212e276d9d603e84ac298246d.zip
Reorganize entire project.
Diffstat (limited to 'src/Render.h')
-rw-r--r--src/Render.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Render.h b/src/Render.h
new file mode 100644
index 0000000..386cbcb
--- /dev/null
+++ b/src/Render.h
@@ -0,0 +1,13 @@
+#include"ObjModel.h"
+class Render : public Bitmap
+{
+private:
+ float edgeFun(const Vertice& A, const Vertice& B, const Vertice& P);
+public:
+ float* zBuffer;
+ Render(int width_, int height_);
+ void drawTriangle(Vertice t1, Vertice t2, Vertice t3, Bitmap& texture);
+ void renderModel(ObjModel& model, Bitmap& texture);
+ void resetZBuf();
+};
+