@renderium/vertices

0.0.3 • Public • Published

Vertices

Vertices for renderium

NPM version Build Status Coverage Status js-standard-style

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

Readme

Keywords

Package Sidebar

Install

npm i @renderium/vertices

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

17.5 kB

Total Files

7

Last publish

Collaborators

  • broadsw0rd