Sun Class Reference#include <sun.h>
Inheritance diagram for Sun:
[legend]List of all members.
Detailed Description
This Sun object should support different types of lighting systems because of the lighting system createLightInfo factory method.
So other lighting systems should only need to derive from here to add more information to the lightinfo.
Member Typedef Documentation
Member Enumeration Documentation
Constructor & Destructor Documentation
Member Function Documentation
virtual void Sun::createLightIfNeeded |
( |
|
) |
[protected, virtual] |
virtual void Sun::conformLight |
( |
|
) |
[protected, virtual] |
virtual bool Sun::onAdd |
( |
|
) |
[virtual] |
Called when the object is added to the sim.
Reimplemented from NetObject.
virtual void Sun::onRemove |
( |
|
) |
[virtual] |
Called when the object is removed from the sim.
Reimplemented from NetObject.
Called to register the object's lights, if any, with the LightManager.
- Parameters:
-
| lm | LightManager to put lights into. |
| lightingScene | True if we're currently calculating lighting information. |
Reimplemented from SimObject.
void Sun::inspectPostApply |
( |
|
) |
[virtual] |
Called after any property of the object is changed in the world editor.
- See also:
- inspectPreApply
Reimplemented from SimObject.
static void Sun::initPersistFields |
( |
|
) |
[static] |
Instructs this object to pack its state for transfer over the network.
- Parameters:
-
| conn | Net connection being used |
| mask | Mask indicating fields to transmit. |
| stream | Bitstream to pack data to |
- Returns:
- Any bits which were not dealt with. The value is stored by the networking system. Don't set bits you weren't passed.
Reimplemented from NetObject.
Instructs this object to read state data previously packed with packUpdate.
- Parameters:
-
| conn | Net connection being used |
| stream | stream to read from |
Reimplemented from NetObject.
Sun::DECLARE_CONOBJECT |
( |
Sun |
|
) |
|
Member Data Documentation
|