Socket
Socket
Sign inDemoInstall

gl-select-static

Package Overview
Dependencies
11
Maintainers
17
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gl-select-static

Static point picking/selection routine


Version published
Weekly downloads
91K
increased by25.69%
Maintainers
17
Install size
174 kB
Created
Weekly downloads
 

Readme

Source

gl-select-static

A variation of gl-select which is designed for non-animated scenes

Install

npm install gl-select-static

API

var createSelectBuffer = require("gl-select-static")

Constructor

var select = createSelectBuffer(gl, shape)

Creates a select buffer with the given shape

Methods

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 point
  • y is the y coordinate of the query point
  • radius is the radius of the selection

Returns A SelectResult with the same contents as in gl-select

select.dispose()

Destroys the selection buffer and releases all associated resources

Properties

select.shape

Updates or retrieves the shape of the selection buffer.

(c) 2014 Mikola Lysenko. MIT License

Keywords

FAQs

Last updated on 18 Jun 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc