Factory for daylight system objects.
Allows for specifying the type of Sun and Sky components. Use this interface to create instances of the daylight system. Client code can get to this interface as follows:
IDaylightSystemFactory2* factory = dynamic_cast<IDaylightSystemFactory2*>(GetCOREInterface(IID_DAYLIGHT_SYSTEM_FACTORY2));
This interface is implemented by 3ds Max.
#include <IDaylightSystem.h>
Public Member Functions |
|
virtual INode * | Create (IDaylightSystem2 *&pDaylight, const Class_ID *sunClassID=NULL, const Class_ID *skyClassID=NULL)=0 |
Creates a daylight system with sun and sky
components of specified type and adds it to the scene at a default
position of (0,0,0) |
virtual INode* Create | ( | IDaylightSystem2 *& | pDaylight, |
const Class_ID * | sunClassID = NULL , |
||
const Class_ID * | skyClassID =
NULL |
||
) | [pure virtual] |
Creates a daylight system with sun and sky components of specified type 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. |
[in] | sunClassID | Class ID of Sun plugin component to be used when creating the daylight system. The supper class id of the Sun is assumed to be LIGHT_CLASS_ID. If left NULL, the Sun type specified by the Market Defaults will be used. |
[in] | skyClassID | Class ID of Sky plugin component to be used when creating the daylight system. The supper class id of the Sky is assumed to be LIGHT_CLASS_ID. If left NULL, the Sun type specified by the Market Defaults will be used. |