x.__init__(...) initializes x; see help(type(x)) for signature
Member Function Documentation
OpenMayaRender.MRenderTarget.freeRawData
(
)
static
freeRawData(long) -> None
Deallocate system memory - retrieved from rawData().
OpenMayaRender.MRenderTarget.rawData
(
)
rawData() -> [long, rowPitch, slicePitch]
Get a copy of the raw data mapped to the target.
The caller must deallocate the system memory (using freeRawData()) as the target itself does not keep any references to it.
* rowPitch [OUT] (int) - The row pitch of the data. It represents the number of bytes of one line of the target data.
* slicePitch [OUT] (int) - The slice pitch of the data. It represents the number of bytes of the whole target data.
OpenMayaRender.MRenderTarget.resourceHandle
(
)
resourceHandle() -> long
Returns a long containing a C++ 'void' pointer which points to the draw API dependent handle for a render target.
For OpenGL, a pointer to an OpenGL texture identifier is returned.
For DirectX, a reference to a Direct3D "view" of a target is returned.
OpenMayaRender.MRenderTarget.targetDescription
(
)
targetDescription() -> MRenderTargetDescription
Get target description.
OpenMayaRender.MRenderTarget.updateDescription
(
)
updateDescription(MRenderTargetDescription) -> self
Change the description of a render target.
The documentation for this class was generated from the following file: