README.md
1### WebGL
2
3##### Introduction
4
5This sample shows how to use WebGL APIs to draw pentagrams and rectangles by invoking GPU resources.
6
7##### How to Use
8
91. Touch the **Pentagram** button. A pentagram is displayed on the canvas.
10
112. Touch the **Rectangle** button. A rectangle is displayed on the canvas.
12
13##### Constraints
14
151. This sample can only be run on standard-system devices.
16
172. The device that runs the sample app must have the capability of invoking GPU resources. For example, an RK3568-powered device has this capability, but a device running the Hi3516 development board does not have this capability.
18
193. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run.
20
README_zh.md
1# WebGL
2
3### 简介
4
5本示例调用GPU资源绘制了五角星和矩形,展示WebGL相关接口的使用方法。效果图如下:
6
7 
8
9### 相关概念
10
11webgl:WebGL标准图形API,对应OpenGL ES 2.0特性集。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191.点击**五角星**按钮,画布展示五角星图案。
20
212.退出应用后再次进入应用,点击**矩形**按钮,画布更新图像为红色矩形。
22
23### 约束与限制
24
251.本示例仅支持在标准系统上运行。
26
272.设备必须具备调用GPU资源的能力(3516不支持,RK3568支持)。
28
293.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。