https://github.com/timvanscherpenzeel/webgl-constants
Complete set of constants as specified in the WebGL, WebGL2 and extension spec.
https://github.com/timvanscherpenzeel/webgl-constants
constants enum es2015 extensions gl mdn typings webgl webgl2
Last synced: 3 months ago
JSON representation
Complete set of constants as specified in the WebGL, WebGL2 and extension spec.
- Host: GitHub
- URL: https://github.com/timvanscherpenzeel/webgl-constants
- Owner: TimvanScherpenzeel
- License: mit
- Created: 2018-03-19T12:28:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T06:25:07.000Z (almost 3 years ago)
- Last Synced: 2025-04-22T01:42:02.551Z (6 months ago)
- Topics: constants, enum, es2015, extensions, gl, mdn, typings, webgl, webgl2
- Language: TypeScript
- Homepage:
- Size: 455 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebGL constants

[](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).