Lights Class Reference

#include <Lights.h>

Collaboration diagram for Lights:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 6 of file Lights.h.


Constructor & Destructor Documentation

Lights::Lights (  ) 

Definition at line 8 of file Lights.cpp.

References cameraPosition, distance, height, isWireframe, lookPosition, numLights, p1Brightness, p2Brightness, percentDifference, and useDepthBuffer.


Member Function Documentation

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  ) 

Definition at line 202 of file Lights.cpp.

References numLights.

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  ) 

Definition at line 280 of file Lights.cpp.

References cameraPosition.

void Lights::SetDrawLines ( bool  flag  ) 

Definition at line 199 of file Lights.cpp.

References drawLines.

void Lights::SetUseDepthBuffer ( bool  flag  ) 

Definition at line 200 of file Lights.cpp.

References useDepthBuffer.

void Lights::Reset (  ) 

Definition at line 212 of file Lights.cpp.

References cameraPosition, distance, height, isWireframe, and lookPosition.

void Lights::MouseDown (  ) 

Definition at line 282 of file Lights.cpp.

References mouseIsDown.

void Lights::MouseUp (  ) 

Definition at line 283 of file Lights.cpp.

References mouseIsDown.

void Lights::MouseMove ( int  x,
int  y 
)

Definition at line 285 of file Lights.cpp.

References cameraPosition, lookPosition, and mouseIsDown.

int Lights::GetNumberOfLights (  ) 

Definition at line 270 of file Lights.cpp.

References numLights.

double Lights::GetDistanceBetweenLights (  ) 

Definition at line 271 of file Lights.cpp.

References distance.

double Lights::GetHeightAboveGround (  ) 

Definition at line 272 of file Lights.cpp.

References height.

double Lights::GetP1Brightness (  ) 

Definition at line 273 of file Lights.cpp.

References p1Brightness.

double Lights::GetP2Brightness (  ) 

Definition at line 274 of file Lights.cpp.

References p2Brightness.

double Lights::GetPercentDifference (  ) 

Definition at line 275 of file Lights.cpp.

References percentDifference.

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]

Definition at line 92 of file Lights.cpp.

References isWireframe.

Referenced by Draw().

void Lights::DrawLines (  )  [private]

Definition at line 132 of file Lights.cpp.

References distance, height, and numLights.

Referenced by Draw().

void Lights::CalculateBrightness (  )  [private]

Definition at line 229 of file Lights.cpp.

References distance, height, numLights, p1Brightness, p2Brightness, and percentDifference.

Referenced by Draw().


Member Data Documentation

bool Lights::drawLines [private]

Definition at line 39 of file Lights.h.

Referenced by Draw(), and SetDrawLines().

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]

Definition at line 46 of file Lights.h.

Referenced by DrawLights(), and Init().

Texture Lights::textures_skybox[6] [private]

Definition at line 47 of file Lights.h.

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]

Definition at line 49 of file Lights.h.

Referenced by Draw(), Lights(), MouseMove(), and Reset().

bool Lights::mouseIsDown [private]

Definition at line 50 of file Lights.h.

Referenced by MouseDown(), MouseMove(), and MouseUp().

bool Lights::isWireframe [private]

Definition at line 51 of file Lights.h.

Referenced by DrawFloor(), Lights(), and Reset().

bool Lights::useDepthBuffer [private]

Definition at line 52 of file Lights.h.

Referenced by DrawLights(), Lights(), and SetUseDepthBuffer().


The documentation for this class was generated from the following files:
Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3