ThorVG
v0.1
ThorVG is a platform-independent portable library for drawing vector-based scene and animation. It's an open-source software that is freely used by a variety of software platforms and applications. ThorVG provides neat and easy APIs, its library has no dependencies and keeps cheap and super compact size. It serves as the vector graphics engine for Tizen OS that powers many products.
|
A class that enables initialization and termination of the TVG engines. More...
Static Public Member Functions | |
static Result | init (CanvasEngine engine, uint32_t threads) noexcept |
Initializes TVG engines. More... | |
static Result | term (CanvasEngine engine) noexcept |
Terminates TVG engines. More... | |
A class that enables initialization and termination of the TVG engines.
|
staticnoexcept |
Initializes TVG engines.
TVG requires the running-engine environment. TVG runs its own task-scheduler for parallelizing rendering tasks efficiently. You can indicate the number of threads, the count of which is designated threads
. In the initialization step, TVG will generate/spawn the threads as set by threads
count.
[in] | engine | The engine types to initialize. This is relative to the Canvas types, in which it will be used. For multiple backeneds bitwise operation is allowed. |
[in] | threads | The number of additional threads. Zero indicates only the main thread is to be used. |
Result::Success | When succeed. |
Result::InsufficientCondition | An internal error possibly with memory allocation. |
Result::InvalidArguments | If unknown engine type chosen. |
Result::NonSupport | In case the engine type is not supported on the system. |
Result::Unknown | Others. |
|
staticnoexcept |
Terminates TVG engines.
[in] | engine | The engine types to terminate. This is relative to the Canvas types, in which it will be used. For multiple backeneds bitwise operation is allowed |
Result::Success | When succeed. |
Result::InsufficientCondition | In case there is nothing to be terminated. |
Result::InvalidArguments | If unknown engine type chosen. |
Result::NonSupport | In case the engine type is not supported on the system. |
Result::Unknown | Others. |