glo-texture
v1.0.1
Published
a WebGL texture interface
Downloads
43
Maintainers
Readme
glo-texture
A generic WebGL texture interface for 2D, 3D, Cube and 2DArray data.
Experimental and subject to change.
var createTexture = require('glo-texture/2d')
var tex = createTexture(gl, pixels, [ width, height ])
tex.minFilter = gl.LINEAR
tex.magFilter = gl.LINEAR
tex.generateMipmap()
tex.bind()
Usage
Todo.
See Also
License
MIT, see LICENSE.md for details.