#include <Lights.h>

Public Member Functions | |
| Lights () | |
| bool | Init () |
| void | Draw () |
| void | SetNumberOfLights (int num) |
| void | SetDistanceBetweenLights (double distance) |
| void | SetHeightAboveGround (double height) |
| void | SetViewDistance (double distance) |
| void | SetDrawLines (bool flag) |
| void | SetUseDepthBuffer (bool flag) |
| void | Reset () |
| void | MouseDown () |
| void | MouseUp () |
| void | MouseMove (int x, int y) |
| int | GetNumberOfLights () |
| double | GetDistanceBetweenLights () |
| double | GetHeightAboveGround () |
| double | GetP1Brightness () |
| double | GetP2Brightness () |
| double | GetPercentDifference () |
Private Member Functions | |
| void | DrawLights () |
| void | DrawFloor () |
| void | DrawLines () |
| void | CalculateBrightness () |
Private Attributes | |
| bool | drawLines |
| int | numLights |
| double | distance |
| double | height |
| double | p1Brightness |
| double | p2Brightness |
| double | percentDifference |
| Texture | lightTex |
| Texture | textures_skybox [6] |
| double | cameraPosition [3] |
| double | lookPosition [3] |
| bool | mouseIsDown |
| bool | isWireframe |
| bool | useDepthBuffer |
Definition at line 6 of file Lights.h.
| Lights::Lights | ( | ) |
Definition at line 8 of file Lights.cpp.
References cameraPosition, distance, height, isWireframe, lookPosition, numLights, p1Brightness, p2Brightness, percentDifference, and useDepthBuffer.
| bool Lights::Init | ( | ) |
Definition at line 28 of file Lights.cpp.
References Texture::activate(), lightTex, and Texture::load2D().
| void Lights::Draw | ( | ) |
Definition at line 68 of file Lights.cpp.
References CalculateBrightness(), cameraPosition, distance, DrawFloor(), DrawLights(), DrawLines(), drawLines, height, lookPosition, and numLights.
| void Lights::SetNumberOfLights | ( | int | num | ) |
| void Lights::SetDistanceBetweenLights | ( | double | distance | ) |
Definition at line 278 of file Lights.cpp.
| void Lights::SetHeightAboveGround | ( | double | height | ) |
Definition at line 279 of file Lights.cpp.
| void Lights::SetViewDistance | ( | double | distance | ) |
| void Lights::SetDrawLines | ( | bool | flag | ) |
| void Lights::SetUseDepthBuffer | ( | bool | flag | ) |
| void Lights::Reset | ( | ) |
Definition at line 212 of file Lights.cpp.
References cameraPosition, distance, height, isWireframe, and lookPosition.
| void Lights::MouseDown | ( | ) |
| void Lights::MouseUp | ( | ) |
| void Lights::MouseMove | ( | int | x, | |
| int | y | |||
| ) |
Definition at line 285 of file Lights.cpp.
References cameraPosition, lookPosition, and mouseIsDown.
| int Lights::GetNumberOfLights | ( | ) |
| double Lights::GetDistanceBetweenLights | ( | ) |
| double Lights::GetHeightAboveGround | ( | ) |
| double Lights::GetP1Brightness | ( | ) |
| double Lights::GetP2Brightness | ( | ) |
| double Lights::GetPercentDifference | ( | ) |
| void Lights::DrawLights | ( | ) | [private] |
Definition at line 166 of file Lights.cpp.
References distance, Texture::getID(), height, lightTex, numLights, and useDepthBuffer.
Referenced by Draw().
| void Lights::DrawFloor | ( | ) | [private] |
| void Lights::DrawLines | ( | ) | [private] |
| void Lights::CalculateBrightness | ( | ) | [private] |
Definition at line 229 of file Lights.cpp.
References distance, height, numLights, p1Brightness, p2Brightness, and percentDifference.
Referenced by Draw().
bool Lights::drawLines [private] |
int Lights::numLights [private] |
Definition at line 40 of file Lights.h.
Referenced by CalculateBrightness(), Draw(), DrawLights(), DrawLines(), GetNumberOfLights(), Lights(), and SetNumberOfLights().
double Lights::distance [private] |
Definition at line 41 of file Lights.h.
Referenced by CalculateBrightness(), Draw(), DrawLights(), DrawLines(), GetDistanceBetweenLights(), Lights(), and Reset().
double Lights::height [private] |
Definition at line 42 of file Lights.h.
Referenced by CalculateBrightness(), Draw(), DrawLights(), DrawLines(), GetHeightAboveGround(), Lights(), and Reset().
double Lights::p1Brightness [private] |
Definition at line 43 of file Lights.h.
Referenced by CalculateBrightness(), GetP1Brightness(), and Lights().
double Lights::p2Brightness [private] |
Definition at line 44 of file Lights.h.
Referenced by CalculateBrightness(), GetP2Brightness(), and Lights().
double Lights::percentDifference [private] |
Definition at line 45 of file Lights.h.
Referenced by CalculateBrightness(), GetPercentDifference(), and Lights().
Texture Lights::lightTex [private] |
Texture Lights::textures_skybox[6] [private] |
double Lights::cameraPosition[3] [private] |
Definition at line 48 of file Lights.h.
Referenced by Draw(), Lights(), MouseMove(), Reset(), and SetViewDistance().
double Lights::lookPosition[3] [private] |
bool Lights::mouseIsDown [private] |
bool Lights::isWireframe [private] |
bool Lights::useDepthBuffer [private] |
Definition at line 52 of file Lights.h.
Referenced by DrawLights(), Lights(), and SetUseDepthBuffer().
1.5.3