Class IRenderElementCompatible

3DS Max Plug-In SDK

Class IRenderElementCompatible

See Also: Class IRenderElement , Render Elements

class IRenderElementCompatible

Description:

This class is available in release 4.0 and later only.

The system will ask a Renderer for this interface by calling Renderer::GetInterface (IRenderElementCompatible::IID). If the Renderer returns a pointer to this interface, it is implied that the Renderer supports render elements. The system will then call IRenderElementCompatible::IsCompatible() to determine if an IRenderElement instance is compatible with it. To determine compatibility, the Renderer can call IRenderElement::GetInterface() (inherited from class Animatable), passing in an interface ID that a compatible IRenderElement would understand. If the Renderer receives a valid interface pointer, it can return TRUE to IRenderElementCompatible::IsCompatible().

Methods:

public:

Prototype:

virtual BOOL IsCompatible(IRenderElement *pIRenderElement)=0;

Remarks:

This method determines if the specified IRenderElement instance is compatible with the renderer.

Parameters:

IRenderElement *pIRenderElement

A pointer to the IRenderElement to check for compatibility.

Return Value:

TRUE if the RenderElement is compatible, FALSE if it is not.