MQuadRender Class Reference

#include <MViewport2Renderer.h>

Class Description

+ Inheritance diagram for MQuadRender:

Public Member Functions

 MQuadRender (const MString &name)
 Constructor for a named quad render. More...
 
virtual ~MQuadRender ()
 Default destructor for a quad render.
 
virtual const MShaderInstanceshader ()
 Shader to use when rendering a quad. More...
 
virtual MClearOperationclearOperation ()
 Get the scene clear operation. More...
 
virtual const MDepthStencilStatedepthStencilStateOverride ()
 Writing to the depth buffer is disabled by default for a quad operation. More...
 
virtual const MRasterizerStaterasterizerStateOverride ()
 No backface culling is performed by default for a quad operation. More...
 
virtual const MBlendStateblendStateOverride ()
 Blending is disabled by default for a quad operation. More...
 
- Public Member Functions inherited from MRenderOperation
virtual bool enableSRGBWrite ()
 Return whether to enable GPU based gamma correction during pixel writes. More...
 
virtual const MFloatPointviewportRectangleOverride ()
 Query for a viewport rectangle override. More...
 
virtual const MStringname () 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 MStringArrayinputTargets ()
 An array of input target names that semantically declares the type of targets the operation requires as input. More...
 
const MStringArrayoutputTargets ()
 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.
 
- Protected Attributes inherited from MRenderOperation
MRenderOperationType mOperationType
 Operation type.
 
MString mName
 Identifier for a sub render.
 

Additional Inherited Members

- Public Types inherited from MRenderOperation
enum  MRenderOperationType {
  kClear, kSceneRender, kQuadRender, kUserDefined,
  kHUDRender, kPresentTarget
}
 Supported render operation types. More...
 
- Protected Member Functions inherited from MRenderOperation
 MRenderOperation (const MString &name)
 Protected constructor. More...
 
MRenderTargetgetInputTarget (const MString &name)
 Gets the target associated with this input. More...
 

Constructor & Destructor Documentation

MQuadRender ( const MString name)

Constructor for a named quad render.

Parameters
[in]nameName of renderer.

Member Function Documentation

const MDepthStencilState * depthStencilStateOverride ( )
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.

Returns
Pointer to a MDepthStencilState
const MRasterizerState * rasterizerStateOverride ( )
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.

Returns
Pointer to a MRasterizerState
const MBlendState * blendStateOverride ( )
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.

Returns
Pointer to a MBlendState

The documentation for this class was generated from the following files:
  • MViewport2Renderer.h
  • MViewport2Renderer.cpp