My Project
Public Member Functions | Public Attributes | List of all members
Scene Class Reference

Main scene. More...

#include "scene/scene.h"

Collaboration diagram for Scene:
Collaboration graph
[legend]

Public Member Functions

 Scene ()
 
 Scene (HWND hWnd, int x, int y, int width, int height)
 
 ~Scene ()
 
void DrawScene ()
 
void AddBrick (Brick brick, int X, int Y, int Z, COLORREF color)
 
void toCam ()
 

Public Attributes

Compositebricks
 
Cameracam
 
Vertex light
 
Vertex slight
 

Detailed Description

Main scene.

Provide interface to bricks on scene, camera. Launchs render.

Definition at line 29 of file scene.h.

Constructor & Destructor Documentation

§ Scene() [1/2]

Scene::Scene ( )

Emty constructor. Set up scene with NULL values (but why? ._.)

Definition at line 5 of file scene.cpp.

§ Scene() [2/2]

Scene::Scene ( HWND  hWnd,
int  x,
int  y,
int  width,
int  height 
)

Constructor. Set up scene with incoming values.

Parameters
[in]hWndHWND of global window
[in]xX coordinate of bitmap
[in]yY coordinate of bitmap
[in]widthBitmap width
[in]heightBitmap height

Definition at line 24 of file scene.cpp.

§ ~Scene()

Scene::~Scene ( )

Destructor. Free memory.

Definition at line 83 of file scene.cpp.

Member Function Documentation

§ AddBrick()

void Scene::AddBrick ( Brick  brick,
int  X,
int  Y,
int  Z,
COLORREF  color 
)

Add brick into scene bricks array. Set model in (0,0,0) monitor coordinates

Parameters
[in]brickBrick to add

Definition at line 161 of file scene.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ DrawScene()

void Scene::DrawScene ( )

Draws background and launch render to draw bricks

Definition at line 119 of file scene.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ toCam()

void Scene::toCam ( )

Transfer vertices from world to camera coordinates

Definition at line 186 of file scene.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

§ bricks

Composite* Scene::bricks

Scene bricks array

Definition at line 68 of file scene.h.

§ cam

Camera* Scene::cam

Camera object

Definition at line 69 of file scene.h.

§ light

Vertex Scene::light

Light object

Definition at line 70 of file scene.h.

§ slight

Vertex Scene::slight

Light object in scene coordinates

Definition at line 71 of file scene.h.


The documentation for this class was generated from the following files: