WebGL
Introduction
This sample shows how to use WebGL APIs to draw pentagrams and rectangles by invoking GPU resources.
How to Use
-
Touch the Pentagram button. A pentagram is displayed on the canvas.
-
Touch the Rectangle button. A rectangle is displayed on the canvas.
Constraints
-
This sample can only be run on standard-system devices.
-
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.
-
The DevEco Studio version used in this sample must be 3.0.0.900 or later.