gl-constants:所有 WebGL 1.0 常量

时间:2021-06-04 05:47:04
【文件属性】:
文件名称:gl-constants:所有 WebGL 1.0 常量
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-04 05:47:04
JavaScript gl 常数 所有 WebGL 1.0 常量作为一个模块。 用于测试。 var constants = require ( 'gl-constants' ) texture . minFilter = constants . LINEAR texture . magFilter = constants . NEAREST 您还可以按数字“查找”常量: var lookup = require ( 'gl-constants/lookup' ) console . log ( lookup ( 1282 ) ) // INVALID_OPERATION 请注意,某些字段共享相同的数字,例如NONE 、 ZERO POINTS和NO_ERROR都使用 0。 用法 require('gl-constants') 一个对象,其中每个键对应于 WebGL 常量整数值。 require(
【文件预览】:
gl-constants-master
----test.js(376B)
----package.json(823B)
----.npmignore(103B)
----1.0()
--------index.js(7KB)
--------numbers.js(8KB)
----LICENSE.md(1KB)
----.gitignore(56B)
----lookup.js(113B)
----README.md(1014B)

网友评论