(gl, texture, width, height)
| 126 | |
| 127 | // Returns a wrapper class with a texture and its util. |
| 128 | function createTexture(gl, texture, width, height) { |
| 129 | return new GlTextureImpl(gl, texture, width, height); |
| 130 | } |
| 131 | |
| 132 | // Returns a wrapper class with a WebGL program and its util functions. |
| 133 | function createProgram(gl, vertexSrc, fragmentSrc) { |