Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Light Class Reference

#include <gameobjs.h>

Inheritance diagram for Light:

Inheritance graph
[legend]
Collaboration diagram for Light:

Collaboration graph
[legend]
List of all members.

Detailed Description

A light object.

No rendered presence.


Public Member Functions

 Light ()
 Default constructor sets light to GL_LIGHT0.
 Light (GLenum t)
 Choose the GL_LIGHT* to use.
void enable (void)
 Light goes on.
void disable (void)
 Light goes off.
void setAmb (float *in)
 Set the ambience of this particular light.
void setDiff (float *in)
 Set the diffuse intensity.
void pos (float xin, float yin, float zin)
 Position the light.
void update (float time)
 I can't remember what this was supposed to do.
void render (void)
 "Draw" the light.


Constructor & Destructor Documentation

Light::Light GLenum  t  ) 
 

Choose the GL_LIGHT* to use.

Todo:
Use a static member to keep track of which light is free.


Member Function Documentation

void Light::render void   )  [virtual]
 

"Draw" the light.

Todo:
If we use this again, check when to turn it on.

Implements AbsObj.

void Light::update float  time  )  [virtual]
 

I can't remember what this was supposed to do.

Todo:
Work out what this did?

Implements AbsObj.


The documentation for this class was generated from the following files:
Generated on Mon Jan 3 15:14:19 2005 for Graviton by  doxygen 1.3.9.1