bp74 / StageXL

A fast and universal 2D rendering engine for HTML5 and Dart.
http://www.stagexl.org
Other
881 stars 81 forks source link

Is/Will StageXL be compatible with Flutter by now? #339

Open aosoft2010 opened 3 years ago

aosoft2010 commented 3 years ago

I'm a lot more interested in game development with Dart,

Is this still an active initiative?

bp74 commented 3 years ago

We were looking into this, but Flutter did not expose the underlying OpenGL interfaces. It would be possible to build it on top of Skia but this would have some restrictions and performance implications. But it would be a really cool to support Flutter and therefore mobile devices!!

nilsdoehring commented 3 years ago

Hi Bernhard,

I recently looked into this again, and Flutter's rendering APIs seem quite similar to those of HTML's Canvas object. There are probably a thousand pitfalls, but StageXL's canvas2d renderer appears like the best point to start when aiming for a FlutterRenderer.

This way, StageXL would keep working as-is, superbly optimized for web (speed and js size). For mobile or desktop app deployment, the flutter engine can be used. You wouldn't want to use Flutter for web deployments anyways, it's a sluggy mess.

kevmoo commented 2 years ago

Duplicate of https://github.com/bp74/StageXL/issues/316