-
Notifications
You must be signed in to change notification settings - Fork 27
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
Update to newest "golang.org/x/mobile/gl" #28
Comments
Thanks for your interest in this package. The upstream I don't currently have plans to work on backporting this feature for The only short term plans I have for |
Thanks for the fast answer. I'm currently working on a small engine and decided to use x/mibile/gl for now. But once I'm confident enough in that project to add WebGl support, I wouldn't mind switching to goxjs and to add the missing features there. x/mobile seems to have way too much overhead if "only" OpenGL is needed. It's more like an experimental framework than a library. What is your opinion about a dedicated glContext interface instead of global package functions? And what is your attitude regarding breaking changes or releasing a v2? |
Sounds like a good approach. If you want to make big changes to
It's reasonable to consider when making a new API, but it's a large change, and one needs to evaluate the benefits and costs. At this time, I don't have a strong desire to make such a change.
Breaking API changes to fix bugs in the API can be considered, but otherwise I'd like to keep the API stable. v2 is fine, but I don't have plans to work on one myself soon. |
I'm currently investigating my options for writing an OpenGL application for both desktop and web and this repository seems the be the best candidate - good work!
It is a while since it was forked from "golang.org/x/mobile/gl" and it seems that there were quite some major changes - adding WebGL support wasn't one of them.
One change I like particularly is the render-thread: Applications use a glctx-object that exposes the OpenGL functionality, but the calls to that context are only pushed into a channel and executed later by a dedicated render thread. This improves multithreading / go-routine support greatly.
I'm not able to use "golang.org/x/mobile/gl" due to the lack of WebGL support (I don't need to support mobile). And I also don't like the fact that desktop applications require the ANGLE dlls instead of using the OpenGL bindings from go-gl - but I can live with that.
Is it possible for goxjs to adapt those features or to be updated to the newest version of golang.org/x/mobile/gl?
Which changes would be required to do so?
The text was updated successfully, but these errors were encountered: