Public Member Functions

IMtlRender_Compatibility_Renderer Class Reference

Search for all occurrences

Detailed Description

See also:
IMtlRender_Compatibility_MtlBase, Class ClassDesc2, Class Mtl, Class Texmap
Description:
This interface is used to determine whether a Renderer flags itself as being compatible with a specific material/map plugin. If the Renderer flags itself as being compatible with a material/map, then it is deemed compatible with that material/map regardless of what class IMtlRender_Compatibility_MtlBase might say.
Implementation instructions:
To be inheritted by a ClassDesc or ClassDesc2 of a Renderer plugin. The child class needs to call Init(*this) in its constructor.
Default compatibility:
If neither the renderer nor the material/map implements the compatibility interface, they are considered compatible by default.

#include <IMtlRender_Compatibility.h>

Inheritance diagram for IMtlRender_Compatibility_Renderer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void  Init (ClassDesc &classDesc)
virtual bool  IsCompatibleWithMtlBase (ClassDesc &mtlBaseClassDesc)=0

Member Function Documentation

void Init ( ClassDesc classDesc ) [inline]
Remarks:
Initialization method. MUST be called from the constructor of the child class. i.e. "Init(*this);".
Parameters:
classDesc - Reference to sub-class instance
                                                                        {

    LoadDescriptor(IMTLRENDER_COMPATIBILITY_RENDERER_INTERFACEID, _M("IMtlRender_Compability_Renderer"), 0, &classDesc, 0, end);
}
virtual bool IsCompatibleWithMtlBase ( ClassDesc mtlBaseClassDesc ) [pure virtual]
Remarks:
Returns wethere this material/map is compatible with the given renderer. (Use the class ID of the renderer to determine compatibility).
Parameters:
mtlBaseClassDesc - Class descriptor of Mtl or Texmap plugin
Returns:
true if this renderer is compatable with the given material

IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer
IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer IMtlRender_Compatibility_Renderer