aboutsummaryrefslogtreecommitdiff
path: root/source/Render.h
blob: 386cbcb24bf752a37e71f964ccbfdc017d8caee2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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();
};