#[repr(u32)]pub enum Tvg_Engine_Option {
TVG_ENGINE_OPTION_NONE = 0,
TVG_ENGINE_OPTION_DEFAULT = 1,
TVG_ENGINE_OPTION_SMART_RENDER = 2,
TVG_ENGINE_OPTION_ALIASED = 4,
}Expand description
@brief Enumeration to specify rendering engine behavior.
@note The availability or behavior of @c TVG_ENGINE_OPTION_SMART_RENDER may vary depending on platform or backend support. It attempts to optimize rendering performance by updating only the regions of the canvas that have changed between frames (partial redraw). This can be highly effective in scenarios where most of the canvas remains static and only small portions are updated—such as simple animations or GUI interactions. However, in complex scenes where a large portion of the canvas changes frequently (e.g., full-screen animations or heavy object movements), the overhead of tracking changes and managing update regions may outweigh the benefits, resulting in decreased performance compared to the default rendering mode. Thus, it is recommended to benchmark both modes in your specific use case to determine the optimal setting.
@ingroup ThorVGCapi_Initializer
@since 1.0
Variants§
TVG_ENGINE_OPTION_NONE = 0
< No engine options are enabled. This may be used to explicitly disable all optional behaviors.
TVG_ENGINE_OPTION_DEFAULT = 1
< Uses the default rendering mode.
TVG_ENGINE_OPTION_SMART_RENDER = 2
< Enables automatic partial (smart) rendering optimizations.
TVG_ENGINE_OPTION_ALIASED = 4
< Disables anti-aliased rendering from the default rendering mode. @note Experimental API
Trait Implementations§
Source§impl Clone for Tvg_Engine_Option
impl Clone for Tvg_Engine_Option
Source§fn clone(&self) -> Tvg_Engine_Option
fn clone(&self) -> Tvg_Engine_Option
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Tvg_Engine_Option
impl Debug for Tvg_Engine_Option
Source§impl Hash for Tvg_Engine_Option
impl Hash for Tvg_Engine_Option
Source§impl PartialEq for Tvg_Engine_Option
impl PartialEq for Tvg_Engine_Option
Source§fn eq(&self, other: &Tvg_Engine_Option) -> bool
fn eq(&self, other: &Tvg_Engine_Option) -> bool
self and other values to be equal, and is used by ==.