Vertices
Vertices for renderium
Install
npm install --save @renderium/vertices
or download dev or prod version
Usage
// create vertices
var vertices = new Vertices(0xff)
// write data
var vertex = vertices[128]
vertex.position.x = 10
vertex.color.a = 255
// push buffer to webgl
gl.bufferSubData(gl.ARRAY_BUFFER, 0, vertices.buffer)
Development
Command | Description |
---|---|
npm run check |
Check standard code style by snazzy |
npm run build |
Wrap source code in UMD by rollup |
npm run test |
Run tests by tape and compute code coverage by nyc |
npm run min |
Minify code by UglifyJS2 |