bp74 / StageXL

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

Is/Will StageXL be compatible with Flutter? #316

Open XANOZOID opened 5 years ago

XANOZOID commented 5 years ago

I'm a lot more interested in game development with Dart, now that Flutter is not in beta. . . and I recall a mention in StageXL somewhere about supporting flutter in the future when it's stable.

Is this still an active initiative?

XANOZOID commented 5 years ago

And I guess on a similar note, does and will StageXL support Dart 2?

I was trying to ramp up the samples but they require Dart 1.x

bp74 commented 5 years ago

Unfortunately Flutter does not expose the OpenGL API, but only their own 2D drawing API. Therefore many features of StageXL can't be migrated to Flutter. I asked many times if they will provide access to OpenGL (or any other low level API) but they don't have any plans to do so :(

Abe King notifications@github.com schrieb am Do., 13. Sep. 2018 um 23:42 Uhr:

I'm a lot more interested in game development with Dart, now that Flutter is not in beta. . . and I recall a mention in StageXL somewhere about supporting flutter in the future when it's stable.

Is this still an active initiative?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bp74/StageXL/issues/316, or mute the thread https://github.com/notifications/unsubscribe-auth/ABugEhIYaR1gw3odaEmnEHf_DpVhcNmEks5uatFcgaJpZM4WoQcF .

bp74 commented 5 years ago

Yes, the latest version of StageXL and also the samples support Dart 2.

https://github.com/bp74/StageXL_Samples

Abe King notifications@github.com schrieb am Fr., 14. Sep. 2018 um 00:02 Uhr:

And I guess on a similar note, does and will StageXL support Dart 2?

I was trying to ramp up the samples but they require Dart 1.x

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bp74/StageXL/issues/316#issuecomment-421167298, or mute the thread https://github.com/notifications/unsubscribe-auth/ABugEgLxM1rV0sLZ3v4-6gClx2O6iFfBks5uatXcgaJpZM4WoQcF .

C-Alexander commented 5 years ago

Would it be possible to split the opengl specific parts of the engine into it's own package?

While OpenGL for Flutter seems unlikely, Flutter does include Skia, which is very powerful and works on every relevant platform.

If it's possible to make a skia-based renderer, engines like this would suddenly become very interesting. Mobile, Windows, Web ... All possible with good performance.

Worth experimentation, I think.

GregorySech commented 5 years ago

OpenGL for Flutter is not as unlikely as it seems, this is from Alibaba Tech

VladimirCores commented 5 years ago

Idea of using underlying Skia rendering layer looks quite interesting. Waiting for updates.

MiYogurt commented 5 years ago

Now the dart provide ffi lib, can binding some c/c++ lib,use SDL2 provide OpenGL environment ?

Thiltal commented 3 years ago

OpenGL environment will not work on iOS > 12.