This interface allows materials and textures to customize their appearance in the Material Browser.
#include <IMaterialBrowserEntryInfo.h>
Public Member Functions |
|
Interface_ID | GetID () |
BaseInterface * | GetInterface (Interface_ID id) |
FPInterfaceDesc * | GetDesc () |
virtual const MCHAR * | GetEntryName () const =0 |
Get the UI name of the entry. |
|
virtual const MCHAR * | GetEntryCategory () const =0 |
The category the entry belongs to. |
|
virtual bool | IsStockObject () const |
virtual Bitmap * | GetEntryThumbnail () const =0 |
Get the UI thumbnail of the entry, if any.
|
|
virtual bool | HasEntryThumbnail () const |
Returns whether the entry supports a custom
thumbnail via GetThumbnail(). |
Interface_ID GetID | ( | ) | [inline, virtual] |
Reimplemented from BaseInterface.
{ return IMATERIAL_BROWSER_ENTRY_INFO_INTERFACE; }
BaseInterface* GetInterface | ( | Interface_ID | id | ) | [inline, virtual] |
Reimplemented from FPInterface.
{ if( id==GetID() ) return this; else return FPInterface::GetInterface(id); }
FPInterfaceDesc* GetDesc | ( | ) | [inline, virtual] |
Implements FPInterface.
{ return NULL; }
virtual const MCHAR* GetEntryName | ( | ) | const [pure virtual] |
Get the UI name of the entry.
This name will be displayed in the Material Browser, instead of the class name from the class descriptor.
virtual const MCHAR* GetEntryCategory | ( | ) | const [pure virtual] |
The category the entry belongs to.
This is the group, plus possible subgroups, containing the entry in the Material Browser. If the entry is nested into subgroups, the hierarchy should be formatted like a filepath. For example "A\\B\\C" indicates an outermost category of "A" and an innermost category of "C". No backslash should be present before the outer category, "A".
virtual bool IsStockObject | ( | ) | const [inline, virtual] |
This method is for internal use only. Plug-ins should return false.
{ return false; }
virtual Bitmap* GetEntryThumbnail | ( | ) | const [pure virtual] |
Get the UI thumbnail of the entry, if any.
This thumbnail will be displayed in the Material Browser, instead of a rendered sample. This improves performance by avoiding a render, and allows a customized display in the browser. The system automatically displays a scaled image according to the current thumbnail size, but the preferred size is 100x100 pixels, to accommodate large thumbnails without upscaling.
virtual bool HasEntryThumbnail | ( | ) | const [inline, virtual] |
Returns whether the entry supports a custom thumbnail via GetThumbnail().
If this returns false, the system will render a thumbnail for display in the Material Browser.
{ return false; }