# webgl-constants

> Complete set of constants as specified in the WebGL, WebGL2 and extension spec.

Latest version **1.1.1** (published 2019-05-22) · 0 weekly downloads

## Install

```sh
npm install webgl-constants
pnpm add webgl-constants
yarn add webgl-constants
bun add webgl-constants
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-05-22 |
| First published | 2018-03-19 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 476.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tim van Scherpenzeel |
| Maintainers | timvanscherpenzeel |

## Links

- npm: https://www.npmjs.com/package/webgl-constants
- npm.io page: https://npm.io/package/webgl-constants

## Recent versions

- 1.1.1 (latest) — 2019-05-22
- 1.1.0 — 2019-04-23
- 1.0.3 — 2019-04-19
- 1.0.2 — 2019-04-18
- 1.0.1 — 2019-04-18
- 1.0.0 — 2019-04-18
- 0.2.0 — 2018-10-18
- 0.1.1 — 2018-08-09
- 0.0.11 — 2018-03-19
- 0.0.10 — 2018-03-19
- 0.0.9 — 2018-03-19
- 0.0.8 — 2018-03-19
- 0.0.7 — 2018-03-19
- 0.0.6 — 2018-03-19
- 0.0.5 — 2018-03-19
- … 4 more at https://npm.io/package/webgl-constants/versions

## README

# WebGL constants

![](http://img.badgesize.io/TimvanScherpenzeel/webgl-constants/master/dist/webgl-constants.cjs.js.svg?compression=gzip&maxAge=60)
[![npm version](https://badge.fury.io/js/webgl-constants.svg)](https://badge.fury.io/js/webgl-constants)

Complete set of constants as specified in the WebGL, WebGL2 and extension spec.

All constants have their original names prefixed with `GL_` in order to namespace the constants and were directly ported from the documentation on the [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants). In some cases the documentation describes duplicate cases such as `UNSIGNED_BYTE` as both a `data` type as well as a `pixel` type. For that reason I've decided to prefix each with their type resulting in `GL_DATA_UNSIGNED_BYTE` and `GL_PIXEL_UNSIGNED_BYTE`.

## Licence

My work is released under the [MIT license](https://raw.githubusercontent.com/TimvanScherpenzeel/webgl-constants/master/LICENSE).

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