3ds Max C++ API Reference
|
VertexColorMaterialHandle is a material class to support vertex color. More...
#include <VertexColorMaterialHandle.h>
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. More... | |
virtual GraphicsDriverAPI const MaterialRequiredStreams * | GetRequiredStreams () const |
Returns the material required streams to tell how to setup mesh data. More... | |
![]() | |
GraphicsDriverAPI | BaseMaterialHandle () |
GraphicsDriverAPI | BaseMaterialHandle (const BaseMaterialHandle &from) |
GraphicsDriverAPI BaseMaterialHandle & | operator= (const BaseMaterialHandle &from) |
virtual GraphicsDriverAPI | ~BaseMaterialHandle () |
GraphicsDriverAPI void | Activate (DrawContext &drawContext) |
Activates the material handle with the specified pipeline context. More... | |
GraphicsDriverAPI void | Terminate () |
Terminates the material handle, performing any cleanup required by the material handle. More... | |
GraphicsDriverAPI unsigned int | GetPassCount (DrawContext &drawContext) const |
Retrieves the number of passes required to render the material handle. More... | |
GraphicsDriverAPI void | ActivatePass (DrawContext &drawContext, unsigned int pass) |
Activates the specified pass of the material handle, at which point it may render geometry as necessary for the pass. More... | |
GraphicsDriverAPI void | PassesFinished (DrawContext &drawContext) |
Called after all of the passes for the material handle have been drawn. More... | |
![]() | |
virtual GraphicsDriverAPI | ~SmartHandle () |
destructor More... | |
GraphicsDriverAPI bool | IsValid () const |
Check if this handle is valid. More... | |
GraphicsDriverAPI void | Release () |
Release the underlying graphics objects. More... | |
GraphicsDriverAPI Identifier | GetObjectID () const |
Get the underlying graphics object id. More... | |
GraphicsDriverAPI void | SetPointer (IRefObject *pObject) |
GraphicsDriverAPI IRefObject * | GetPointer () const |
Get the underlying graphics object pointer. More... | |
bool | operator== (const SmartHandle &rhs) const |
bool | operator!= (const SmartHandle &rhs) const |
bool | operator< (const SmartHandle &rhs) const |
bool | operator<= (const SmartHandle &rhs) const |
bool | operator> (const SmartHandle &rhs) const |
bool | operator>= (const SmartHandle &rhs) const |
GraphicsDriverAPI | SmartHandle (const SmartHandle &) |
GraphicsDriverAPI SmartHandle & | operator= (const SmartHandle &) |
Additional Inherited Members | |
![]() | |
static UtilExport void * | operator new (size_t size) |
Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More... | |
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e) |
Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More... | |
static UtilExport void * | operator new (size_t size, const char *filename, int line) |
New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More... | |
static UtilExport void * | operator new (size_t size, int block_type, const char *filename, int line) |
New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More... | |
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, const char *filename, int line) |
New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More... | |
static UtilExport void * | operator new (size_t size, unsigned long flags) |
New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More... | |
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, unsigned long flags) |
New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More... | |
static UtilExport void * | operator new[] (size_t size) |
New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More... | |
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e) |
New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More... | |
static UtilExport void * | operator new[] (size_t size, const char *filename, int line) |
New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More... | |
static UtilExport void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
New operator used to allocate arrays of objects. More... | |
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line) |
New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More... | |
static UtilExport void * | operator new[] (size_t size, unsigned long flags) |
New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More... | |
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, unsigned long flags) |
New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More... | |
static UtilExport void | operator delete (void *ptr) |
Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e) |
Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More... | |
static UtilExport void | operator delete (void *ptr, const char *filename, int line) |
Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void | operator delete (void *ptr, int block_type, const char *filename, int line) |
Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More... | |
static UtilExport void | operator delete (void *ptr, unsigned long flags) |
Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags) |
Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More... | |
static UtilExport void | operator delete[] (void *ptr) |
Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e) |
Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More... | |
static UtilExport void | operator delete[] (void *ptr, const char *filename, int line) |
Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void | operator delete[] (void *ptr, int block_type, const char *filename, int line) |
Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More... | |
static UtilExport void | operator delete[] (void *ptr, unsigned long flags) |
Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags) |
Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More... | |
static UtilExport void * | operator new (size_t size, void *placement_ptr) |
Placement new operator. More... | |
static UtilExport void | operator delete (void *ptr, void *placement_ptr) |
Placement delete operator. More... | |
static UtilExport void * | aligned_malloc (size_t size, size_t alignment) |
Allocates memory on a specified alignment boundary. More... | |
static UtilExport void * | aligned_realloc (void *ptr, size_t size, size_t alignment) |
Reallocates memory on a specified alignment boundary. More... | |
static UtilExport void | aligned_free (void *ptr) |
Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More... | |
![]() | |
GraphicsDriverAPI | SmartHandle () |
![]() | |
IRefObject * | mpObject |
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:
GraphicsDriverAPI VertexColorMaterialHandle | ( | const VertexColorMaterialHandle & | from | ) |
|
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 |
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.