Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CommandSetAmbientLight Class Reference

#include <command.h>

Inheritance diagram for CommandSetAmbientLight:

Inheritance graph
Collaboration diagram for CommandSetAmbientLight:

Collaboration graph
List of all members.

Public Member Functions

 CommandSetAmbientLight (float)
void process (ExecutionEnvironment &)

Private Attributes

float lightLevel

Constructor & Destructor Documentation

CommandSetAmbientLight::CommandSetAmbientLight float   ) 
 

Definition at line 551 of file command.cpp.

00551                                                           :
00552     lightLevel(level)
00553 {
00554 }


Member Function Documentation

void CommandSetAmbientLight::process ExecutionEnvironment  )  [virtual]
 

Implements InstantaneousCommand.

Definition at line 556 of file command.cpp.

References lightLevel, and Renderer::setAmbientLightLevel().

00557 {
00558     Renderer* r = env.getRenderer();
00559     if (r != NULL)
00560         r->setAmbientLightLevel(lightLevel);
00561 }


Member Data Documentation

float CommandSetAmbientLight::lightLevel [private]
 

Definition at line 442 of file command.h.

Referenced by process().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:14 2006 for Celestia by  doxygen 1.4.1