A new interface for 3dsmax 10.
Extends IViewportShaderManager2 This interface is implemented by 3ds Max, more specifically by the DirectX Manager and Mental Ray custom attributes of materials. Client code can get this interface from a material with the following code:
Material* pMaterial = // initialize material pointer ICustAttribContainer* pCAContainer = pMaterial->GetCustAttribContainer(); BaseInterface* pBaseIfc = pCAContainer->FindCustAttribInterface(VIEWPORT_SHADER_MANAGER_INTERFACE3); IViewportShaderManager3* pViewportShaderMgr = static_cast<IViewportShaderManager3*>(pBaseIfc);
#include <IViewportManager.h>
Public Member Functions |
|
virtual bool | IsCurrentEffectEnabled ()=0 |
GetActiveEffect and GetActiveEffectName
returns information of currently selected effect, however, the
effect may still not be "enabled". |
|
virtual bool | SetCurrentEffectEnabled (bool enabled)=0 |
Access to set the enable/disable state of
the current selected effect. |
|
virtual bool | IsDxStdMtlSupported ()=0 |
Is the DX Display of the Material is supported at this moment.
|
|
virtual bool | IsSaveFxSupported ()=0 |
Is saving Standard Material as .fx file is supported at this
moment. |
|
virtual bool | IsCurrentEffectSupported ()=0 |
Is current selected effect is supported.
|
|
virtual MtlBase * | FindOwnerMaterial ()=0 |
virtual bool IsCurrentEffectEnabled | ( | ) | [pure virtual] |
GetActiveEffect and GetActiveEffectName returns information of currently selected effect, however, the effect may still not be "enabled".
To get the enable/disable state of the effect, use this function.
virtual bool SetCurrentEffectEnabled | ( | bool | enabled | ) | [pure virtual] |
Access to set the enable/disable state of the current selected effect.
enabled | The state of the flag - TRUE to set |
virtual bool IsDxStdMtlSupported | ( | ) | [pure virtual] |
Is the DX Display of the Material is supported at this moment.
virtual bool IsSaveFxSupported | ( | ) | [pure virtual] |
Is saving Standard Material as .fx file is supported at this moment.
virtual bool IsCurrentEffectSupported | ( | ) | [pure virtual] |
Is current selected effect is supported.
virtual MtlBase* FindOwnerMaterial | ( | ) | [pure virtual] |