OpenMayaRender.MRenderTargetManager Class Reference

Class Description

Provides access to MRenderTarget objects for use in Viewport 2.0.
+ Inheritance diagram for OpenMayaRender.MRenderTargetManager:

Public Member Functions

__init__ ()
 
acquireRenderTarget ()
 
acquireRenderTargetFromScreen ()
 
formatSupportsSRGBWrite ()
 
releaseRenderTarget ()
 

Constructor & Destructor Documentation

OpenMayaRender.MRenderTargetManager.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMayaRender.MRenderTargetManager.acquireRenderTarget ( )
acquireRenderTarget(MRenderTargetDescription) -> MRenderTarget

Acquire an instance of a render target.
When the object is no longer needed, releaseRenderTarget() should be called
to notify the target manager that the caller is done with the render target.
OpenMayaRender.MRenderTargetManager.acquireRenderTargetFromScreen ( )
acquireRenderTargetFromScreen(string) -> MRenderTarget

Acquire an instance of a render target with the same characteristics as the current on-screen target.
When the object is no longer needed, releaseRenderTarget() should be called
to notify the target manager that the caller is done with the render target.
OpenMayaRender.MRenderTargetManager.formatSupportsSRGBWrite ( )
formatSupportsSRGBWrite(int) -> bool

This method will perform a check to determine whether gamma correction can be performed
by the GPU when writing pixels to a render target of a given format.
OpenMayaRender.MRenderTargetManager.releaseRenderTarget ( )
releaseRenderTarget(MRenderTarget) -> self

Deletes the MRenderTarget and releases the reference to the underlying target which is held by the MRenderTarget object.

The documentation for this class was generated from the following file:
  • D:/Maya-MD-Merge/input/python/2.0/OpenMayaRender.py