rive-app / rive-cpp-legacy

C++ runtime for Rive
MIT License
287 stars 43 forks source link

Do we need to build Skia too? #357

Open madoodia opened 1 year ago

madoodia commented 1 year ago

Hello

I have a question

For using rive API and being able to load and show the animation in another platform like Qt, do we need to build Skia too?

luigi-rosso commented 1 year ago

Not necessarily. We provide a rendering abstraction layer that makes for a pluggable rendering architecture. Skia is one such solution that we provide Renderer bindings for (we also provide one for Web Canvas, a low level OpenGL tessellating renderer, a CoreGraphics renderer, and some other third party ones).

If Qt provides its own vector rendering API you may be able to implement a renderer binding Rive's rendering abstraction to whatever Qt provides. If not, then you may need to bring something like Skia for either software or hardware rendering if Qt provides access to the GPU.

madoodia commented 6 months ago

Thanks @luigi-rosso

With a big delay, Unfortunately I could not be successful for implementing renderer!

just would you please explain a little bit more about implementing a renderer in a host application and binding to the Rive's Rendering Abstraction (as a third party lib), a little bit more? I mean totally, not specific related to Qt!

or introduce some references that give me some clues!

Thanks