3ds Max C++ API Reference
naturalLight.h File Reference
#include "ifnpub.h"
#include "GetCOREInterface.h"
#include "Animatable.h"
#include "plugapi.h"

Classes

class  INaturalLightClass
 

class INaturalLightClass: public BaseInterface

More...
 
class  NaturalLightClassBaseImp
 
class  ISunLight
 class ISunLight : public BaseInterface

More...
 
class  SkyLightEval
 class SkyLightEval : public BaseInterface

More...
 
class  ISkyLight
 class ISkyLight : public BaseInterface

More...
 

Macros

#define NATURAL_LIGHT_CLASS_INTERFACE_ID   Interface_ID(0x75985ea5, 0x115c2791)
 
#define SUNLIGHT_INTERFACE_ID   Interface_ID(0x43b76ff2, 0x60ae0d61)
 
#define SKYLIGHT_INTERFACE_ID   Interface_ID(0x47056297, 0x7f8b06e3)
 

Functions

INaturalLightClassGetNaturalLightClass (SClass_ID s, const Class_ID &id)
 
INaturalLightClassGetNaturalLightClass (Animatable *a)
 
INaturalLightClassGetNaturalLightClassInterface (ClassDesc *c)
 
ISunLightGetSunLightInterface (Animatable *o)
 
ISkyLightGetSkyLightInterface (Animatable *o)
 

Macro Definition Documentation

◆ NATURAL_LIGHT_CLASS_INTERFACE_ID

#define NATURAL_LIGHT_CLASS_INTERFACE_ID   Interface_ID(0x75985ea5, 0x115c2791)

◆ SUNLIGHT_INTERFACE_ID

#define SUNLIGHT_INTERFACE_ID   Interface_ID(0x43b76ff2, 0x60ae0d61)

◆ SKYLIGHT_INTERFACE_ID

#define SKYLIGHT_INTERFACE_ID   Interface_ID(0x47056297, 0x7f8b06e3)

Function Documentation

◆ GetNaturalLightClass() [1/2]

INaturalLightClass* GetNaturalLightClass ( SClass_ID  s,
const Class_ID id 
)
inline
113 {
114  return static_cast<INaturalLightClass*>( GetInterface(s, id, NATURAL_LIGHT_CLASS_INTERFACE_ID) );
115 }
CoreExport FPInterface * GetInterface(SClass_ID super, Class_ID cls, Interface_ID id)
Get ID'd interface from ClassDesc for given class/sclass.
class INaturalLightClass: public BaseInterface
Definition: naturalLight.h:85
#define NATURAL_LIGHT_CLASS_INTERFACE_ID
Definition: naturalLight.h:57

◆ GetNaturalLightClass() [2/2]

INaturalLightClass* GetNaturalLightClass ( Animatable a)
inline
118 {
119  return a == NULL ? NULL
121 }
#define NULL
Definition: autoptr.h:18
virtual CoreExport SClass_ID SuperClassID()=0
Retrieves a constant representing the type of the plugin.
virtual CoreExport Class_ID ClassID()
Retrieves a constant that uniquely identifies the plugin class.
INaturalLightClass * GetNaturalLightClass(SClass_ID s, const Class_ID &id)
Definition: naturalLight.h:112

◆ GetNaturalLightClassInterface()

INaturalLightClass* GetNaturalLightClassInterface ( ClassDesc c)
inline
136 {
138 }
virtual CoreExport FPInterface * GetInterface(Interface_ID id)
Returns a pointer to the function publishing interface whose ID is specified.

◆ GetSunLightInterface()

ISunLight* GetSunLightInterface ( Animatable o)
inline
164 {
165  return static_cast<ISunLight*>(o->GetInterface(SUNLIGHT_INTERFACE_ID));
166 }
virtual CoreExport void * GetInterface(ULONG id)
class ISunLight : public BaseInterface
Definition: naturalLight.h:154
#define SUNLIGHT_INTERFACE_ID
Definition: naturalLight.h:140

◆ GetSkyLightInterface()

ISkyLight* GetSkyLightInterface ( Animatable o)
inline
272 {
273  return static_cast<ISkyLight*>(o->GetInterface(SKYLIGHT_INTERFACE_ID));
274 }
class ISkyLight : public BaseInterface
Definition: naturalLight.h:241
#define SKYLIGHT_INTERFACE_ID
Definition: naturalLight.h:212