|
| bool | drawImage (const RDrawImageInfo &image, const SkRegion *region=nullptr, const RDrawImageInfo *mask=nullptr) noexcept override |
| | Draws an image onto the surface.
|
| |
| bool | drawColor (const SkRegion ®ion) noexcept override |
| | Fills the specified region with the current color().
|
| |
| bool | drawImageEffect (const RDrawImageInfo &image, ImageEffect effect, const SkRegion *region=nullptr) noexcept override |
| | Draws an image applying a built-in image effect.
|
| |
| bool | setGeometry (const RSurfaceGeometry &geometry) noexcept override |
| | Sets the viewport -> (transform) -> dst mapping used by draw operations.
|
| |
| const State & | state () const noexcept |
| | Returns the current painter state.
|
| |
| void | setState (const State &state) noexcept |
| | Replaces the current painter state.
|
| |
| void | save () noexcept |
| | Saves the current RPainter state.
|
| |
| void | restore () noexcept |
| | Restores the most recently saved RPainter state.
|
| |
| void | clearHistory () noexcept |
| | Clears the saved state history and resets the current state to its defaults.
|
| |
| void | reset () noexcept |
| | Resets the current RPainter state to its default configuration.
|
| |
| void | setOption (Option option, bool enabled) noexcept |
| | Sets an option.
|
| |
| void | setOptions (CZBitset< Option > options=0) |
| | Sets the current rendering options, replacing any previously set flags.
|
| |
| void | setBlendMode (RBlendMode mode=RBlendMode::SrcOver) noexcept |
| | Sets the current blend mode used for drawing operations.
|
| |
| RBlendMode | blendMode () const noexcept |
| | Returns the current blend mode.
|
| |
| void | setOpacity (SkScalar opacity=1.f) noexcept |
| | Sets the global opacity for drawing operations.
|
| |
| SkScalar | opacity () const noexcept |
| | Returns the current global opacity.
|
| |
| void | setColor (SkColor color=SK_ColorBLACK) noexcept |
| | Specifies the color used by drawColor() and clearSurface().
|
| |
| SkColor | color () const noexcept |
| | Returns the current drawing color.
|
| |
| void | setFactor (const SkColor4f &factor={1.f, 1.f, 1.f, 1.f}) noexcept |
| | Sets per-channel multiplication factors applied in drawColor() and drawImage().
|
| |
| const SkColor4f & | factor () const noexcept |
| | Returns the current per-channel multiplication factors.
|
| |
| const RSurfaceGeometry & | geometry () const noexcept |
| | Returns the current geometry.
|
| |
| void | clear () noexcept |
| | Clears the current viewport using the current color.
|
| |
| RDevice * | device () const noexcept |
| | Returns the device used for rendering by this painter.
|
| |
| std::shared_ptr< RSurface > | surface () const noexcept |
| | Returns the surface this painter draws into.
|
| |
| | RObject ()=default |
| | Constructs a default RObject.
|
| |
Vulkan implementation of RPainter (native SPIR-V shaders).
Records drawing commands into a per-pass command buffer inside a VkRenderPass targeting the surface image, and submits at flush() (called by ~RVKPass). Positions/UVs are pre-transformed to NDC/normalized image coords on the CPU; blend modes map to fixed-function blend state.