This is the base wrapper class for all viewport render items.
A render item is the primary drawable element that holds the geometry. A plugin object that wants to be displayed in the viewport needs to create and maintain a set of concrete derived render items like TupleMeshRenderItem and expose those render items to max via the IObjectDisplay interface.
#include <RenderItemHandle.h>
Public Member Functions |
|
GraphicsDriverAPI | RenderItemHandle () |
GraphicsDriverAPI | RenderItemHandle (const RenderItemHandle &from) |
GraphicsDriverAPI RenderItemHandle & |
operator= (const RenderItemHandle &from) |
virtual GraphicsDriverAPI | ~RenderItemHandle () |
GraphicsDriverAPI void | SetCategory (RenderItemCategory category) |
Sets the category of the render item.
|
|
GraphicsDriverAPI RenderItemCategory |
GetCategory () const |
Gets the category of the render item.
|
|
MAX_DEPRECATED GraphicsDriverAPI void |
SetCustomMaterial (const BaseMaterialHandle &hMaterial) |
MAX_DEPRECATED GraphicsDriverAPI BaseMaterialHandle |
GetCustomMaterial () const |
GraphicsDriverAPI RenderItemHandle | ( | ) |
GraphicsDriverAPI RenderItemHandle | ( | const RenderItemHandle & | from | ) |
virtual GraphicsDriverAPI ~RenderItemHandle | ( | ) | [virtual] |
GraphicsDriverAPI RenderItemHandle& operator= | ( | const RenderItemHandle & | from | ) |
GraphicsDriverAPI void SetCategory | ( | RenderItemCategory | category | ) |
Sets the category of the render item.
By default the category of a render item is RenderItemCategoryGizmo.
category | The category of this render item. |
GraphicsDriverAPI RenderItemCategory GetCategory | ( | ) | const |
Gets the category of the render item.
MAX_DEPRECATED GraphicsDriverAPI void SetCustomMaterial | ( | const BaseMaterialHandle & | hMaterial | ) |
No replacement. Set custom material for render item. By default, render item uses the material from node. When a custom material is set, the render item will use the set material.
hMaterial | The material handle. |
MAX_DEPRECATED GraphicsDriverAPI BaseMaterialHandle GetCustomMaterial | ( | ) | const |
No replacement. Get custom material for render item.