gl-constants

WebJar for gl-constants

Лицензия

Лицензия

MIT
Категории

Категории

Ant Компиляция и сборка
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

gl-constants
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

gl-constants
WebJar for gl-constants
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать gl-constants

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
1.0.0