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

Function WebGLVertexArrayObjectOES

docs/app/js/sanddance-app.js:59152–59164  ·  view source on GitHub ↗
(ext)

Source from the content-addressed store, hash-verified

59150 };
59151}
59152var WebGLVertexArrayObjectOES = function WebGLVertexArrayObjectOES1(ext) {
59153 var gl = ext.gl;
59154 this.ext = ext;
59155 this.isAlive = true;
59156 this.hasBeenBound = false;
59157 this.elementArrayBuffer = null;
59158 this.attribs = new Array(ext.maxVertexAttribs);
59159 for(var n = 0; n < this.attribs.length; n++){
59160 var attrib = new WebGLVertexArrayObjectOES1.VertexAttrib(gl);
59161 this.attribs[n] = attrib;
59162 }
59163 this.maxAttrib = 0;
59164};
59165WebGLVertexArrayObjectOES.VertexAttrib = function VertexAttrib(gl) {
59166 this.enabled = false;
59167 this.buffer = null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected