My Project
scene.h
Go to the documentation of this file.
1 
12 #pragma once
13 
14 #include "../geometry\gmatrix.h"
15 #include "../model/composite.h"
16 #include "camera.h"
17 //#include "light.h"
18 
19 class Render;
20 
21 #include "../render/render.h"
22 
29 class Scene
30 {
31 public:
35  Scene();
36 
45  Scene(HWND hWnd, int x, int y, int width, int height);
46 
50  ~Scene();
51 
55  void DrawScene();
56 
61  void AddBrick(Brick brick, int X, int Y, int Z, COLORREF color);
62 
66  void toCam();
67 
73 private:
77  void InitBitmap();
78 
79  int X;
80  int Y;
81  int width;
82  int height;
84  unsigned long* pixels;
86  BITMAPINFO sBmInfo;
87  HBITMAP sBmp;
88  HDC hdc;
89  HDC hdcMem;
90  HWND hWnd;
92  Render* render;
94 };
Camera * cam
Definition: scene.h:69
Contains loaded bricks.
Definition: composite.h:23
Definition: render.h:6
Define vertex consisting 3 double coordinates.
Definition: vertex.h:24
void AddBrick(Brick brick, int X, int Y, int Z, COLORREF color)
Definition: scene.cpp:161
Camera object.
~Scene()
Definition: scene.cpp:83
Brick archetecture.
Definition: brick.h:25
void DrawScene()
Definition: scene.cpp:119
Camera object.
Definition: camera.h:23
Scene()
Definition: scene.cpp:5
Main scene.
Definition: scene.h:29
Composite * bricks
Definition: scene.h:68
Vertex light
Definition: scene.h:70
void toCam()
Definition: scene.cpp:186
Vertex slight
Definition: scene.h:71