webGL alternatives on Android

2019-06-08 05:46发布

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?

3条回答
Summer. ? 凉城
2楼-- · 2019-06-08 06:07

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

查看更多
叼着烟拽天下
3楼-- · 2019-06-08 06:26

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.

查看更多
不美不萌又怎样
4楼-- · 2019-06-08 06:29

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/).

查看更多
登录 后发表回答