Skip to content

Commit d5cdedf

Browse files
feat: add webgl API
1 parent 0e9b21b commit d5cdedf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
INFO: WebGL API
3+
A 3D & 2D rendering API based on OpenGL ES, using <canvas> to access GPU acceleration
4+
1. Works with WebGLRenderingContext for WebGL2
5+
2. Uses GLSL shaders for visuals
6+
3. Powerful, but steep learning curve
7+
*/
8+
9+
const canvas = document.getElementById("c");
10+
const gl = canvas.getContext("webgl");

0 commit comments

Comments
 (0)