This reference page is linked to from the following overview topics: Low-level Device API.
#include <VertexColorMaterialHandle.h>
VertexColorMaterialHandle is a material class to support vertex color.
This class is used for viewport display and Quicksilver. It's used by RenderItemHandle::SetCustomMaterial() to describe the vertex color surface. How to use:
VertexColorMaterialHandle hMaterial; hMaterial.Initialize(); pItem->SetCustomMaterial(hMaterial); // pItem is an instance of RenderItemHandle
Public Member Functions |
|
GraphicsDriverAPI | VertexColorMaterialHandle () |
GraphicsDriverAPI | VertexColorMaterialHandle (const VertexColorMaterialHandle &from) |
GraphicsDriverAPI VertexColorMaterialHandle & |
operator= (const VertexColorMaterialHandle &from) |
virtual GraphicsDriverAPI | ~VertexColorMaterialHandle () |
GraphicsDriverAPI bool | Initialize () |
Initialize the instance of vertex color
material. |
|
virtual
GraphicsDriverAPI const MaterialRequiredStreams * |
GetRequiredStreams () const |
Returns the material required streams to
tell how to setup mesh data. |
GraphicsDriverAPI VertexColorMaterialHandle | ( | ) |
GraphicsDriverAPI VertexColorMaterialHandle | ( | const VertexColorMaterialHandle & | from | ) |
virtual GraphicsDriverAPI ~VertexColorMaterialHandle | ( | ) | [virtual] |
GraphicsDriverAPI VertexColorMaterialHandle& operator= | ( | const VertexColorMaterialHandle & | from | ) |
GraphicsDriverAPI bool Initialize | ( | ) |
Initialize the instance of vertex color material.
A VertexColorMaterialHandle should be initialized before it's used.
virtual GraphicsDriverAPI const MaterialRequiredStreams* GetRequiredStreams | ( | ) | const [virtual] |
Returns the material required streams to tell how to setup mesh data.
When a BaseMaterialHandle is used by RenderItemHandle::SetCustomMaterial(), it also needs to know about the material requirement streams to setup corresponding mesh data. It could be used by GenerateRenderItems::GenerateRenderItems() for RenderItemHandle.
Reimplemented from BaseMaterialHandle.