My Project
render.h
Go to the documentation of this file.
1 #pragma once
2 #include "../scene/scene.h"
3 
4 using std::vector;
5 
6 class Render
7 {
8 public:
9  Render(unsigned long* pixels, int height, int width);
10  ~Render();
11 
12  void run(Composite* bricks, Camera cam, Vertex light);
13 
14 private:
15  void line(int x0, int y0, int x1, int y1);
16  void fillFaces(Vertex A, Vertex B, Vertex C, Normal nA, Normal nB, Normal nC, COLORREF color, Vertex light, Camera cam);
17  double intencity(double X, double Y, double Z, GVector N, Vertex light, Camera cam);
18 
19  unsigned long* pixels;
20  int height;
21  int width;
22 
23  int* zbuffer;
24 
25 };
void run(Composite *bricks, Camera cam, Vertex light)
Definition: render.cpp:21
Contains loaded bricks.
Definition: composite.h:23
Definition: render.h:6
Define vertex consisting 3 double coordinates.
Definition: vertex.h:24
Define geometric vector.
Definition: gvector.h:26
Define normal (object container for GVector)
Definition: normal.h:24
Camera object.
Definition: camera.h:23
~Render()
Definition: render.cpp:17
Render(unsigned long *pixels, int height, int width)
Definition: render.cpp:5