webGL alternatives on Android

家住魔仙堡 提交于 2019-12-08 05:06:29

问题


As Android WebKit does not natively support webGL yet (true?) I am looking forward to emulate webGL in an embedded WebKit app.

Are there any bindings which would expose OpenGL ES Java interfaces to Javascript in a manner it could be even close to webGL?


回答1:


FYI: Firefox for Android does support WebGL. It's not the fastest, but it does work.




回答2:


Not quite what you're looking for, but maybe this could help you: http://processingjs.org/

It's ProcessingJS, based on processing (http://processing.org/).




回答3:


You could expose OpenGL ES 2.0 (Note that WebGL is a subset of OpenGL ES 2.0) methods to javascript via:

WebView.addJavascriptInterface(Object, String);

It will be slower than a native app, but you could emulate almost every WebGL call there.

Quick Edit: I was trying to do the same but preferred to do a native version.



来源:https://stackoverflow.com/questions/8267282/webgl-alternatives-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!