Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter integration advice? #1

Open
maks opened this issue May 20, 2021 · 1 comment
Open

Flutter integration advice? #1

maks opened this issue May 20, 2021 · 1 comment

Comments

@maks
Copy link

maks commented May 20, 2021

First of @emilieroberts thank you so much for releasing this!

I would like to use this for a v2 rewrite I am doing of my very old-in-the-tooth Sketch Notes app.

I'm doing the new version in Flutter, so I guess I'll be building a Flutter plugin for this unless someone else has already done so?

I'm guessing that using the OpenGL api will be the best approach as I think that Flutter already uses this for other "hot path" Android integrations like camera viewfinder video feed and I have myself used the approach documented here on a past project showing a opengl visualisation written in c++ inside a Flutter app.

But I'm definitely no expert in this so any guidance on the best way to approach exposing this to Flutter would be most appreciated.

@emilieroberts
Copy link
Collaborator

Hello! Thanks for the interest in the library. A Flutter integration sounds great, though I am not an expert with it (I've used it but not to write my own plug-in with GL bindings!)

One potential pitfall is the this library is quite Kotlin/Java heavy. You could create the surfaces in Kotlin/Java, then get an ANativeWindow handle for them, but I worry that you might get into a bunch of C++<->Java hops that would slow things down. And then Flutter on top of that.

However, if it's possible with this version, it'd be great! Have you started exploring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants