aboutsummaryrefslogtreecommitdiff
path: root/src/Render.h
diff options
context:
space:
mode:
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();
+};
+