- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# MQuadRender Class Reference
OpenMayaRender - API module for rendering

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

Search for all occurrences

## Detailed Description

Class which defines a 2d geometry quad render.

`#include <MViewport2Renderer.h>`

Inheritance diagram for MQuadRender:
[legend]

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 MShaderInstance * | shader ()
| Shader to use when rendering a quad.
virtual MClearOperation & | clearOperation ()
| Get the scene clear operation.
virtual const MDepthStencilState * | depthStencilStateOverride ()
| Writing to the depth buffer is disabled by default for a quad operation.
virtual const MRasterizerState * | rasterizerStateOverride ()
| No backface culling is performed by default for a quad operation.
virtual const MBlendState * | blendStateOverride ()
| Blending is disabled by default for a quad operation.

## Constructor & Destructor Documentation

MQuadRender | ( | const MString & | name | ) |

Constructor for a named quad render.

Parameters:

  [in] | name | Name of renderer.

## Member Function Documentation

const MShaderInstance * shader | ( |  | ) | `[virtual]`

Search for all occurrences

Shader to use when rendering a quad.

Returns:
  Pointer to a MShaderInstance

MClearOperation & clearOperation | ( |  | ) | `[virtual]`

Search for all occurrences

Get the scene clear operation.

Returns:
  The clear operation

const MDepthStencilState * depthStencilStateOverride | ( |  | ) | `[virtual]`

Search for all occurrences

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]`

Search for all occurrences

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]`

Search for all occurrences

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