MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / draw

Function draw

src/lib/libwebgl.js:1012–1015  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1010 if (prevStencilTest) gl.disable(0xB90 /*GL_STENCIL_TEST*/);
1011
1012 function draw() {
1013 gl.vertexAttribPointer(context.blitPosLoc, 2, 0x1406 /*GL_FLOAT*/, false, 0, 0);
1014 gl.drawArrays(5/*GL_TRIANGLE_STRIP*/, 0, 4);
1015 }
1016
1017 if (context.defaultVao) {
1018 // WebGL 2 or OES_vertex_array_object

Callers 1

libwebgl.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected