|
| | ~RPass () noexcept |
| | Destroys the render pass.
|
| |
| CZBitset< RPassCap > | caps () const noexcept |
| | Returns the capabilities enabled for this pass.
|
| |
| virtual SkCanvas * | getCanvas (bool sync=true) const noexcept=0 |
| | Returns the SkCanvas associated with this pass, if available.
|
| |
| virtual RPainter * | getPainter (bool sync=true) const noexcept=0 |
| | Returns the RPainter associated with this pass, if available.
|
| |
| virtual void | setGeometry (const RSurfaceGeometry &geometry) noexcept=0 |
| | Sets transformation matrices.
|
| |
| void | resetGeometry () noexcept |
| | Resets the geometry to the default RSurface geometry.
|
| |
| const RSurfaceGeometry & | geometry () const noexcept |
| | Returns the current geometry for this pass.
|
| |
| std::shared_ptr< RSurface > | surface () const noexcept |
| | Returns the destination surface being rendered into.
|
| |
| void | save () noexcept |
| | Saves the state of both RPainter and SkCanvas.
|
| |
| void | restore () noexcept |
| | Restores the most recently saved state of RPainter and SkCanvas.
|
| |
| | RObject ()=default |
| | Constructs a default RObject.
|
| |
A Ream render pass.
An RPass allows an RDevice to render into an RSurface using either RPainter or SkCanvas, depending on the capabilities requested at creation time (see RSurface::beginPass()).
If you mix both RPainter and SkCanvas commands, make sure to call either getPainter() or getCanvas() first, depending on which API you intend to start using. Failing to do so may lead to synchronization issues, or in some cases, may cause Skia to crash.
Upon destruction, a fence is inserted into the underlying surface RImage to ensure that other threads wait before using the image as a source. Destroying the pass may also trigger flushing of pending Skia commands, depending on the current graphics backend.