# webglew

> WebGL extension wrangler

Latest version **1.0.5** (published 2014-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install webglew
pnpm add webglew
yarn add webglew
bun add webglew
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2014-12-01 |
| First published | 2013-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko, chrisdickinson, hughsk, mattdesl |
| Keywords | webgl, gl, extension, glew, wrangler, float_texture, OES_texture_float, khronos |

## Links

- npm: https://www.npmjs.com/package/webglew
- Repository: https://github.com/mikolalysenko/webglew
- Issues: https://github.com/mikolalysenko/webglew/issues
- npm.io page: https://npm.io/package/webglew

## Dependencies (1)

- [weak-map](https://npm.io/package/weak-map.md) ^1.0.5

## Recent versions

- 1.0.5 (latest) — 2014-12-01
- 1.0.4 — 2014-09-15
- 1.0.3 — 2014-05-01
- 1.0.2 — 2014-03-27
- 1.0.1 — 2014-03-27
- 1.0.0 — 2014-03-27
- 0.0.0 — 2013-02-23

## README

webglew
=======
**WebGL** **E** xtension **W** rangler.  Manages WebGL extensions so you don't have to.

# Example

```javascript
var canvas = document.createElement("canvas")
var gl = canvas.getContext("webgl")
var ext = require("webglew")(gl)

if(ext.OES_texture_float) {
  console.log("GL context supports floats!")
} else {
  console.log("No floating point textures :'(")
}
```

# Install

```
npm install webglew
```

# API

#### `require("webglew")(gl)`
To use the library, call the module with a WebGL context and it will return a JavaScript object with a list of properties.  For convenience, extensions with a vendor specific prefix are aliased to the root WEBGL_* name.  For example,

    WEBKIT_WEBGL_lose_context
    
Becomes:

    WEBGL_lose_context

# Credits
(c) 2013-2014 Mikola Lysenko. MIT

---
_Source: https://npm.io/package/webglew · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
