3ds Max C++ API Reference
|
CustomRenderStageHandle is the base wrapper class of the custom render stage. More...
#include <CustomRenderStageHandle.h>
Public Member Functions | |
GraphicsDriverAPI | CustomRenderStageHandle () |
GraphicsDriverAPI | CustomRenderStageHandle (const CustomRenderStageHandle &from) |
GraphicsDriverAPI CustomRenderStageHandle & | operator= (const CustomRenderStageHandle &from) |
virtual GraphicsDriverAPI | ~CustomRenderStageHandle () |
GraphicsDriverAPI void | Initialize () |
Initialize this custom render stage. More... | |
GraphicsDriverAPI void | Run () |
Run the custom render stage. More... | |
virtual GraphicsDriverAPI void | SetColorTarget (const TargetHandle &pColorTarget) |
Set the color target to the custom render stage. More... | |
virtual GraphicsDriverAPI TargetHandle | GetColorTarget () const |
Get the color target of the custom render stage. More... | |
virtual GraphicsDriverAPI void | SetDepthTarget (const TargetHandle &pDepthTarget) |
Set the depth target to the custom render stage. More... | |
virtual GraphicsDriverAPI TargetHandle | GetDepthTarget () const |
Get the depth target of the custom render stage. More... | |
virtual GraphicsDriverAPI void | SetRenderWorld (const RenderWorldHandle &pRenderWorld) |
Set the render world to the custom render stage. More... | |
virtual GraphicsDriverAPI RenderWorldHandle | GetRenderWorld () const |
Get the render world of the custom render stage. More... | |
GraphicsDriverAPI void | SetCamera (const MaxSDK::Graphics::CameraPtr &pCamera) |
Set the render camera to the custom render stage. More... | |
GraphicsDriverAPI const MaxSDK::Graphics::CameraPtr & | GetCamera () const |
Get the render camera of the custom render stage. More... | |
GraphicsDriverAPI void | SetVisibilityGroup (MaxSDK::Graphics::RenderItemVisibilityGroup visibilityGroup) |
Set the visibility group to the custom render stage. More... | |
GraphicsDriverAPI MaxSDK::Graphics::RenderItemVisibilityGroup | GetVisibilityGroup () const |
Get the visibility group of the custom render stage. More... | |
GraphicsDriverAPI void | SetBackgroundColor (const AColor &color) |
Set the background color to the custom render stage. More... | |
GraphicsDriverAPI const AColor & | GetBackgroundColor () const |
Get the background color of the custom render stage. More... | |
GraphicsDriverAPI void | SetViewport (const Point4 &viewport) |
Set the viewport to the custom render stage. More... | |
GraphicsDriverAPI const Point4 & | GetViewport () const |
Get the viewport of the custom render stage. More... | |
GraphicsDriverAPI void | SetClearDepth (bool bClear) |
Set whether we clear the depth buffer before running the custom render stage. More... | |
GraphicsDriverAPI bool | GetClearDepth () const |
Get whether we clear the depth buffer before running the custom render stage. More... | |
GraphicsDriverAPI void | SetClearColorBuffer (bool bClear) |
Set whether we clear the color buffer before running the custom render stage. More... | |
GraphicsDriverAPI bool | GetClearColorBuffer () const |
Get whether we clear the color buffer before running the custom render stage. More... | |
GraphicsDriverAPI void | SetOverrideMaterial (const BaseMaterialHandle &pOverrideMaterial) |
Set the override material to the custom render stage. More... | |
GraphicsDriverAPI BaseMaterialHandle | GetOverrideMaterial () const |
Get the override material of the custom render stage. More... | |
GraphicsDriverAPI const EffectInstanceHandle & | GetOverrideEffectInstance () const |
Get the override effect instance handle of the custom render stage. More... | |
GraphicsDriverAPI void | SetOverrideEffectInstance (const EffectInstanceHandle &effectInstanceHandle) |
Set the override effect instance handle to the custom render stage. 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 |
CustomRenderStageHandle is the base wrapper class of the custom render stage.
GraphicsDriverAPI CustomRenderStageHandle | ( | const CustomRenderStageHandle & | from | ) |
|
virtual |
GraphicsDriverAPI CustomRenderStageHandle& operator= | ( | const CustomRenderStageHandle & | from | ) |
GraphicsDriverAPI void Initialize | ( | ) |
Initialize this custom render stage.
GraphicsDriverAPI void Run | ( | ) |
Run the custom render stage.
|
virtual |
Set the color target to the custom render stage.
[in] | pColorTarget | the color target |
|
virtual |
Get the color target of the custom render stage.
|
virtual |
Set the depth target to the custom render stage.
[in] | pDepthTarget | the depth target |
|
virtual |
Get the depth target of the custom render stage.
|
virtual |
Set the render world to the custom render stage.
[in] | pRenderWorld | the render world |
|
virtual |
Get the render world of the custom render stage.
GraphicsDriverAPI void SetCamera | ( | const MaxSDK::Graphics::CameraPtr & | pCamera | ) |
Set the render camera to the custom render stage.
[in] | pCamera | the render camera |
GraphicsDriverAPI const MaxSDK::Graphics::CameraPtr& GetCamera | ( | ) | const |
Get the render camera of the custom render stage.
GraphicsDriverAPI void SetVisibilityGroup | ( | MaxSDK::Graphics::RenderItemVisibilityGroup | visibilityGroup | ) |
Set the visibility group to the custom render stage.
[in] | visibilityGroup | the visibility group |
GraphicsDriverAPI MaxSDK::Graphics::RenderItemVisibilityGroup GetVisibilityGroup | ( | ) | const |
Get the visibility group of the custom render stage.
GraphicsDriverAPI void SetBackgroundColor | ( | const AColor & | color | ) |
Set the background color to the custom render stage.
[in] | color | the background color |
GraphicsDriverAPI const AColor& GetBackgroundColor | ( | ) | const |
Get the background color of the custom render stage.
GraphicsDriverAPI void SetViewport | ( | const Point4 & | viewport | ) |
Set the viewport to the custom render stage.
[in] | viewport | the viewport with .xy the left-top point of the viewport and .zw the right-bottom point of the viewport |
GraphicsDriverAPI const Point4& GetViewport | ( | ) | const |
Get the viewport of the custom render stage.
GraphicsDriverAPI void SetClearDepth | ( | bool | bClear | ) |
Set whether we clear the depth buffer before running the custom render stage.
[in] | bClear | whether we clear the depth buffer |
GraphicsDriverAPI bool GetClearDepth | ( | ) | const |
Get whether we clear the depth buffer before running the custom render stage.
GraphicsDriverAPI void SetClearColorBuffer | ( | bool | bClear | ) |
Set whether we clear the color buffer before running the custom render stage.
[in] | bClear | whether we clear the depth buffer |
GraphicsDriverAPI bool GetClearColorBuffer | ( | ) | const |
Get whether we clear the color buffer before running the custom render stage.
GraphicsDriverAPI void SetOverrideMaterial | ( | const BaseMaterialHandle & | pOverrideMaterial | ) |
Set the override material to the custom render stage.
[in] | pOverrideMaterial | the override material |
GraphicsDriverAPI BaseMaterialHandle GetOverrideMaterial | ( | ) | const |
Get the override material of the custom render stage.
GraphicsDriverAPI const EffectInstanceHandle& GetOverrideEffectInstance | ( | ) | const |
Get the override effect instance handle of the custom render stage.
GraphicsDriverAPI void SetOverrideEffectInstance | ( | const EffectInstanceHandle & | effectInstanceHandle | ) |
Set the override effect instance handle to the custom render stage.
[in] | effectInstanceHandle | the override effect instance handle |