> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
This module provides WebGL APIs that correspond to the OpenGL ES 2.0 feature set. For more information, see [WebGL™](https://www.khronos.org/registry/webgl/specs/latest/1.0/).
This module provides WebGL APIs that correspond to the OpenGL ES 2.0 feature set. For more information, see [WebGL™](https://www.khronos.org/registry/webgl/specs/latest/2.0/).
## Modules to Import
## Modules to Import
```
```
import webgl from 'ohos.webglnapi'
import webgl from '@ohos.webglnapi';
```
```
## System Capabilities
## Invoking Method
SystemCapability.Graphic.Graphic2D.WebGL
Create a **<canvas>** component in the HML file. The following is an example:
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...
@@ -10,492 +10,474 @@ This module provides WebGL APIs that correspond to the OpenGL ES 3.0 feature set
...
@@ -10,492 +10,474 @@ This module provides WebGL APIs that correspond to the OpenGL ES 3.0 feature set
## Modules to Import
## Modules to Import
```
```
import webgl from 'ohos.webglnapi'
import webgl from '@ohos.webglnapi';
```
```
## System Capabilities
## Invoking Method
SystemCapability.Graphic.Graphic2D.WebGL2
Create a **<canvas>** component in the HML file. The following is an example: