MQuadRender Class Reference

This reference page is linked to from the following overview topics: Autodesk Maya 2014, Rendering Overrides, 3.8 Render Loop Overrides.



Detailed Description

Class which defines a 2d geometry quad render.

#include <MViewport2Renderer.h>

Inheritance diagram for MQuadRender:

List of all members.

Public Member Functions

 MQuadRender (const MString &name)
 Constructor for a named quad render.
virtual ~MQuadRender ()
 Default destructor for a quad render.
virtual const MShaderInstanceshader ()
 Shader to use when rendering a quad.
virtual MClearOperationclearOperation ()
 Get the scene clear operation.
virtual const MDepthStencilStatedepthStencilStateOverride ()
 Writing to the depth buffer is disabled by default for a quad operation.
virtual const MRasterizerStaterasterizerStateOverride ()
 No backface culling is performed by default for a quad operation.
virtual const MBlendStateblendStateOverride ()
 Blending is disabled by default for a quad operation.

Constructor & Destructor Documentation

MQuadRender ( const MString name)

Constructor for a named quad render.

Parameters:
[in]nameName of renderer.

Member Function Documentation

const MShaderInstance * shader ( ) [virtual]

Shader to use when rendering a quad.

Returns:
Pointer to a MShaderInstance
MClearOperation & clearOperation ( ) [virtual]

Get the scene clear operation.

Returns:
The clear operation
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

MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender
MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender MQuadRender