Skip to content

renderium/vertices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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