$ cnpm install gl-select-static
A variation of gl-select which is designed for non-animated scenes
npm install gl-select-static
var createSelectBuffer = require("gl-select-static")
var select = createSelectBuffer(gl, shape)Creates a select buffer with the given shape
select.begin()Begins a selection rendering pass.
select.end()Finishes the selection pass.
select.query(x,y,radius)Queries the selection buffer for all points within radius.
x is the x coordinate of the query pointy is the y coordinate of the query pointradius is the radius of the selectionReturns A SelectResult with the same contents as in gl-select
select.dispose()Destroys the selection buffer and releases all associated resources
select.shapeUpdates or retrieves the shape of the selection buffer.
(c) 2014 Mikola Lysenko. MIT License
Copyright 2013 - present © cnpmjs.org