0.0.3 • Published 6 years ago

@renderium/vertices v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

CommandDescription
npm run checkCheck standard code style by snazzy
npm run buildWrap source code in UMD by rollup
npm run testRun tests by tape and compute code coverage by nyc
npm run minMinify code by UglifyJS2
0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago