Factory for daylight system objects.
The type of Sun and Sky components are specified by the current Market Default. Use this interface to create instances of the daylight system. Client code can get to this interface as follows:
IDaylightSystemFactory* factory = static_cast<IDaylightSystemFactory*>(GetCOREInterface(DAYLIGHTSYSTEM_FACTORY_INTERFACE));
This interface is implemented by 3ds Max.
#include <IDaylightSystem.h>
Public Member Functions |
|
virtual INode * | Create (IDaylightSystem *&pDaylight)=0 |
Creates a daylight system and adds it to the
scene, at a default position of (0,0,0) |
|
Static Public Member Functions |
|
static IDaylightSystemFactory * | GetInstance () |
Retrieves the single instance of the
Daylight system factory. |
virtual INode* Create | ( | IDaylightSystem *& | pDaylight | ) | [pure virtual] |
Creates a daylight system and adds it to the scene, at a default position of (0,0,0)
[in,out] | pDaylight | returns the component of the daylight system which can be used to access the sun and sky. See IDaylightSystem. |
static IDaylightSystemFactory* GetInstance | ( | ) | [inline, static] |
Retrieves the single instance of the Daylight system factory.
{ return static_cast<IDaylightSystemFactory*>(GetCOREInterface(DAYLIGHTSYSTEM_FACTORY_INTERFACE)); }