flyskywhy / react-native-gcanvas

react native canvas based on gpu opengl glsl GCanvas -- A lightweight cross-platform graphics rendering engine. (超轻量的跨平台图形引擎)
Apache License 2.0
218 stars 21 forks source link

能否提供 WebGL 支持 #1

Closed zhiqingchen closed 3 years ago

zhiqingchen commented 3 years ago

@flyskywhy/react-native-gcanvas only support render2d canvas as described in Java_com_taobao_gcanvas_GCanvasJNI_render() of core/android/GCanvasJNI.cpp.

为何只能支持 2d

flyskywhy commented 3 years ago

因为之前阿里的文档中说 WebGL 的相关函数 extendCallNative 是仅支持 iOS 的,为了让 Android 和 iOS 保持一致,我先只支持 2d 。 后续有时间我再测测是否能在 Android 上也支持 WebGL ,因为阿里的文档也可能已过期 :P

flyskywhy commented 3 years ago

@zhiqingchen ,请提供一些类似目前 Example As Usage 中 drawSome() 内容的 WebGL 相关的测试代码,以便我调试,谢谢!

zhiqingchen commented 3 years ago

https://github.com/alibaba/GCanvas/issues/47

还没搞到webgl,目前卡到上面的问题了😅

flyskywhy commented 3 years ago

@flyskywhy/react-native-gcanvas@2.1.0 support 3D WebGL :laughing: