Detailed Description
- See also:
- Class IMtlRender_Compatibility_Renderer,
Class ClassDesc2,
Class Mtl, Class Texmap
- Description:
- This interface is used to determine whether a material/map
flags itself as being compatible with a specific renderer plugin.
If the material/map flags itself as being compatible with a
renderer, then it is deemed compatible with that renderer
regardless of what class IMtlRender_Compatibility_Renderer
might say.
- Implementation:
- To be inheritted by a
ClassDesc or ClassDesc2 of a Texmap or Mtl 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.
- Material/map browser icon:
- The interface also provides a way of defining an icon that
appears in the material browser - GetCustomMtlBrowserIcon. This can
be used to provide an Enable color. In mental ray enabled uses a
yellow icon, the DirextX 9 Shader
uses a pink icon. Developers can use this to highlight special
materials or textures.
#include <IMtlRender_Compatibility.h>
List
of all members.
Member Function Documentation
- Parameters:
-
classDesc |
- Reference to sub-class instance |
{
LoadDescriptor(IMTLRENDER_COMPATIBILITY_MTLBASE_INTERFACEID, _M("IMtlRender_Compability_MtlBase"), 0, &classDesc, 0, end);
}
virtual bool IsCompatibleWithRenderer |
( |
ClassDesc & |
rendererClassDesc |
) |
[pure virtual] |
virtual bool GetCustomMtlBrowserIcon |
( |
HIMAGELIST & |
hImageList, |
|
|
int & |
inactiveIndex, |
|
|
int & |
activeIndex, |
|
|
int & |
disabledIndex |
|
) |
|
[inline, virtual] |
- Parameters:
-
hImagelist |
- The image list from which the icons are extracted. The images
should have a mask. |
inactiveIndex |
- Index (into image list) of icon to be displayed when the
material/map has the "Show Maps in Viewport" flag turned OFF. |
activeIndex |
- Index (into image list) of icon to be displayed when the
material/map has the "Show Maps in Viewport" flag turned ON. |
disabledIndex |
- Index (into image list) of icon to be displayed when the
material/map is NOT COMPATIBLE with the current renderer. |
- Returns:
- true if custom icons are provided
Reimplemented in MSPluginDesc.
IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase IMtlRender_Compatibility_MtlBase
IMtlRender_Compatibility_MtlBase