3 ms·
What if you want a common C++ code base that can run on web or desktop?
by hackcasual 7y ago
What if you want a common C++ code base that can run on web or desktop?
- c-smile 7y agoIf you want that you will create set of C++ classes wrapping Skia, Direct2D or Cairo with the same API as browser provides. That is actually what I did in Sciter that is using these libraries for rendering on different platforms - they all have very close feature set - umbrella wrapper is quite simple.
- hackcasual 7y agoSure, and that's actually what FireFox does, but not everyone is going to prioritize that approach.
- c-smile 7y agoSo it is doable. QED.
- hackcasual 7y agoSo because someone can abstract away the underlying graphics library, CanvasKit shouldn't exist?
- c-smile 7y agoNo. Because browser already contains Skia (or Direct2D). In native (most performant) form. Why do you need to download and run Skia inside Skia?