Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

glo-texture

mattdesl46MIT1.0.1

a WebGL texture interface

webgl, texture, 2d, array, 2d_array, gl, glsl, tex, image, pixel, pixels, pixmap, 3d, cube, map, cubemap, cubes

readme

glo-texture

experimental

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

NPM

Todo.

See Also

License

MIT, see LICENSE.md for details.