gl-constants

WebJar for gl-constants

License

License

MIT
Categories

Categories

Ant Build Tools
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gl-constants
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

gl-constants
WebJar for gl-constants
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mattdesl/gl-constants

Download gl-constants

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gl-constants/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gl-constants</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gl-constants/
implementation 'org.webjars.npm:gl-constants:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/gl-constants/
implementation ("org.webjars.npm:gl-constants:1.0.0")
'org.webjars.npm:gl-constants:jar:1.0.0'
<dependency org="org.webjars.npm" name="gl-constants" rev="1.0.0">
  <artifact name="gl-constants" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gl-constants', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "gl-constants" % "1.0.0"
[org.webjars.npm/gl-constants "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

gl-constants

stable

All the WebGL 1.0 constants as a module. Useful for testing.

var constants = require('gl-constants')

texture.minFilter = constants.LINEAR
texture.magFilter = constants.NEAREST

You can also 'lookup' a constant by number:

var lookup = require('gl-constants/lookup')

console.log(lookup(1282)) // INVALID_OPERATION

Note that some fields share the same number, like NONE, ZERO POINTS and NO_ERROR all use 0.

Usage

NPM

require('gl-constants')

An object where each key corresponds to the WebGL constant integer value.

require('gl-constants/lookup')(number)

Returns the key name associated with the given WebGL constant integer value.

License

MIT, see LICENSE.md for details.

Versions

Version
1.0.0