Class which defines a 2d geometry quad render. More...
#include <MViewport2Renderer.h>
Public Member Functions | |
MQuadRender (const MString &name) | |
Constructor for a named quad render. More... | |
~MQuadRender () override | |
Default destructor for a quad render. | |
virtual const MShaderInstance * | shader () |
Shader to use when rendering a quad. More... | |
virtual MClearOperation & | clearOperation () |
Get the scene clear operation. More... | |
virtual const MDepthStencilState * | depthStencilStateOverride () |
Writing to the depth buffer is disabled by default for a quad operation. More... | |
virtual const MRasterizerState * | rasterizerStateOverride () |
No backface culling is performed by default for a quad operation. More... | |
virtual const MBlendState * | blendStateOverride () |
Blending is disabled by default for a quad operation. More... | |
![]() | |
virtual bool | enableSRGBWrite () |
Return whether to enable GPU based gamma correction during pixel writes. More... | |
virtual const MFloatPoint * | viewportRectangleOverride () |
Query for a viewport rectangle override. More... | |
virtual const MString & | name () const |
Query the name of a render operator. More... | |
virtual bool | getInputTargetDescription (const MString &name, MRenderTargetDescription &description) |
Return the description to use when creating the target for the named input. More... | |
virtual int | writableTargets (unsigned int &count) |
Return the index of the first writable target in the inputTargets list. More... | |
virtual MRenderTarget *const * | targetOverrideList (unsigned int &listSize) |
Return a list of pointers to render target which will be used as the target overrides for the operation. More... | |
const MStringArray & | inputTargets () |
An array of input target names that semantically declares the type of targets the operation requires as input. More... | |
const MStringArray & | outputTargets () |
An array of output target names that semantically declares the type of targets the operation can produce. More... | |
void | renameOutputTarget (const MString &name, const MString &newName) |
Renames an output target of an operation. More... | |
MRenderOperationType | operationType () const |
Query the type (MRenderOperationType) of a render operator. More... | |
Protected Attributes | |
MClearOperation | mClearOperation |
Clear operation. | |
![]() | |
MRenderOperationType | mOperationType |
Operation type. | |
MString | mName |
Identifier for a sub render. | |
Additional Inherited Members | |
![]() | |
enum | MRenderOperationType { kClear, kSceneRender, kQuadRender, kUserDefined, kHUDRender, kPresentTarget } |
Supported render operation types. More... | |
![]() | |
MRenderOperation (const MString &name) | |
Protected constructor. More... | |
MRenderTarget * | getInputTarget (const MString &name) |
Gets the target associated with this input. More... | |
Class which defines a 2d geometry quad render.
MQuadRender | ( | const MString & | name | ) |
Constructor for a named quad render.
[in] | name | Name of renderer. |
|
virtual |
|
virtual |
Get the scene clear operation.
|
virtual |
Writing to the depth buffer is disabled by default for a quad operation.
If a non-NULL depth-stencil state is returned from this method then that state will override the default behaviour.
The default implementation returns a NULL value.
|
virtual |
No backface culling is performed by default for a quad operation.
If a non-NULL rasterizer state is returned from this method then that state will override the default behaviour.
The default implementation returns a NULL value.
|
virtual |
Blending is disabled by default for a quad operation.
If a non-NULL blend state is returned from this method then that state will override the default behaviour.
The default implementation returns a NULL value.