aboutsummaryrefslogtreecommitdiff
path: root/source/Render.h
diff options
context:
space:
mode:
authorMatejaMaric <matejamaricz@gmail.com>2019-07-09 00:26:42 +0200
committerMatejaMaric <matejamaricz@gmail.com>2019-07-09 00:26:42 +0200
commita7c9aeee1e68235af406e30654e4b2e5f0f7fda2 (patch)
tree492e4860bf17d196b5a79a83004aec217e69cf1e /source/Render.h
downloaderender-a7c9aeee1e68235af406e30654e4b2e5f0f7fda2.tar.gz
erender-a7c9aeee1e68235af406e30654e4b2e5f0f7fda2.zip
First commit
Diffstat (limited to 'source/Render.h')
-rw-r--r--source/Render.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/Render.h b/source/Render.h
new file mode 100644
index 0000000..386cbcb
--- /dev/null
+++ b/source/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();
+};
+