RenderingContext

    • 通过 Canvas.getContext('webgl') 接口可以获取 WebGLRenderingContext 对象,实现了 定义的所有属性、方法、常量。
    • globalCompositeOperation 不支持以下值: source-in source-out destination-atop lighter copy。如果使用,不会报错,但是将得到与预期不符的结果。

    WebGL 接口支持情况

    • iOS 支持 pvr 格式
    • Android 支持 etc1 格式