MCPcopy Create free account
hub / github.com/microsoft/SandDance / WebGLVertexArrayObjectOES

Function WebGLVertexArrayObjectOES

docs/tests/v3/es6/js/sanddance-test-es6.js:7083–7095  ·  view source on GitHub ↗
(ext)

Source from the content-addressed store, hash-verified

7081 };
7082}
7083var WebGLVertexArrayObjectOES = function WebGLVertexArrayObjectOES1(ext) {
7084 var gl = ext.gl;
7085 this.ext = ext;
7086 this.isAlive = true;
7087 this.hasBeenBound = false;
7088 this.elementArrayBuffer = null;
7089 this.attribs = new Array(ext.maxVertexAttribs);
7090 for(var n = 0; n < this.attribs.length; n++){
7091 var attrib = new WebGLVertexArrayObjectOES1.VertexAttrib(gl);
7092 this.attribs[n] = attrib;
7093 }
7094 this.maxAttrib = 0;
7095};
7096WebGLVertexArrayObjectOES.VertexAttrib = function VertexAttrib(gl) {
7097 this.enabled = false;
7098 this.buffer = null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected