@luma.gl/constants
Advanced tools
Comparing version 9.0.11 to 9.1.0-alpha.1
export { GL } from "./webgl-constants.js"; | ||
export type { GLTextureTarget, GLTextureCubeMapTarget, GLPrimitiveTopology, GLPrimitive, GLDataType, GLPixelType, GLUniformType, GLSamplerType, GLCompositeType, GLFunction, GLBlendEquation, GLBlendFunction, GLStencilOp, GLSamplerParameters, GLValueParameters, GLFunctionParameters, GLParameters, GLLimits, GLExtensions, GLPolygonMode, GLProvokingVertex } from "./webgl-types.js"; | ||
export type { GLTextureTarget, GLTextureCubeMapTarget, GLTexelDataFormat, GLPrimitiveTopology, GLPrimitive, GLDataType, GLPixelType, GLUniformType, GLSamplerType, GLCompositeType, GLFunction, GLBlendEquation, GLBlendFunction, GLStencilOp, GLSamplerParameters, GLValueParameters, GLPackParameters, GLUnpackParameters, GLFunctionParameters, GLParameters, GLLimits, GLExtensions, GLPolygonMode, GLProvokingVertex } from "./webgl-types.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -15,2 +15,4 @@ import { GL } from "./webgl-constants.js"; | ||
export type GLTextureCubeMapTarget = GL.TEXTURE_CUBE_MAP_POSITIVE_X | GL.TEXTURE_CUBE_MAP_NEGATIVE_X | GL.TEXTURE_CUBE_MAP_POSITIVE_Y | GL.TEXTURE_CUBE_MAP_NEGATIVE_Y | GL.TEXTURE_CUBE_MAP_POSITIVE_Z | GL.TEXTURE_CUBE_MAP_NEGATIVE_Z; | ||
/** Texel data formats for gl.texSubImage() */ | ||
export type GLTexelDataFormat = GL.ALPHA | GL.RGB | GL.RGBA | GL.LUMINANCE | GL.LUMINANCE_ALPHA | GL.SRGB | GL.RED | GL.RG | GL.RED_INTEGER | GL.RG_INTEGER | GL.RGB_INTEGER | GL.RGBA_INTEGER | GL.DEPTH_COMPONENT | GL.DEPTH_STENCIL; | ||
/** Rendering primitives. Constants passed to drawElements() or drawArrays() to specify what kind of primitive to render. */ | ||
@@ -21,5 +23,5 @@ export type GLPrimitiveTopology = GL.POINTS | GL.LINES | GL.LINE_STRIP | GL.LINE_LOOP | GL.TRIANGLES | GL.TRIANGLE_STRIP | GL.TRIANGLE_FAN; | ||
/** Data Type */ | ||
export type GLDataType = GL.FLOAT | GL.UNSIGNED_SHORT | GL.UNSIGNED_INT | GL.UNSIGNED_BYTE | GL.BYTE | GL.SHORT | GL.INT; | ||
export type GLDataType = GL.FLOAT | GL.UNSIGNED_SHORT | GL.UNSIGNED_INT | GL.UNSIGNED_BYTE | GL.BYTE | GL.SHORT | GL.INT | GL.HALF_FLOAT; | ||
/** Pixel Data Type */ | ||
export type GLPixelType = GLDataType | GL.UNSIGNED_SHORT_5_6_5 | GL.UNSIGNED_SHORT_4_4_4_4 | GL.UNSIGNED_SHORT_5_5_5_1; | ||
export type GLPixelType = GLDataType | GL.UNSIGNED_SHORT_5_6_5 | GL.UNSIGNED_SHORT_4_4_4_4 | GL.UNSIGNED_SHORT_5_5_5_1 | GL.UNSIGNED_INT_2_10_10_10_REV | GL.UNSIGNED_INT_10F_11F_11F_REV | GL.UNSIGNED_INT_5_9_9_9_REV | GL.UNSIGNED_INT_24_8 | GL.FLOAT_32_UNSIGNED_INT_24_8_REV; | ||
/** Uniform Type */ | ||
@@ -141,3 +143,7 @@ export type GLUniformType = GLSamplerType | GLCompositeType; | ||
[GL.VIEWPORT]?: [number, number, number, number] | NumberArray; | ||
[GL.READ_FRAMEBUFFER_BINDING]?: Framebuffer | null; | ||
[GL.PACK_ALIGNMENT]?: number; | ||
[GL.PACK_ROW_LENGTH]?: number; | ||
[GL.PACK_SKIP_PIXELS]?: number; | ||
[GL.PACK_SKIP_ROWS]?: number; | ||
[GL.UNPACK_ALIGNMENT]?: number; | ||
@@ -147,6 +153,19 @@ [GL.UNPACK_FLIP_Y_WEBGL]?: boolean; | ||
[GL.UNPACK_COLORSPACE_CONVERSION_WEBGL]?: GL.NONE | GL.BROWSER_DEFAULT_WEBGL; | ||
[GL.UNPACK_ROW_LENGTH]?: number; | ||
[GL.UNPACK_IMAGE_HEIGHT]?: number; | ||
[GL.UNPACK_SKIP_PIXELS]?: number; | ||
[GL.UNPACK_SKIP_ROWS]?: number; | ||
[GL.UNPACK_SKIP_IMAGES]?: number; | ||
}; | ||
export type GLPackParameters = { | ||
[GL.PACK_ALIGNMENT]?: number; | ||
[GL.PACK_ROW_LENGTH]?: number; | ||
[GL.PACK_SKIP_PIXELS]?: number; | ||
[GL.PACK_SKIP_ROWS]?: number; | ||
[GL.READ_FRAMEBUFFER_BINDING]?: Framebuffer | null; | ||
}; | ||
export type GLUnpackParameters = { | ||
[GL.UNPACK_ALIGNMENT]?: number; | ||
[GL.UNPACK_FLIP_Y_WEBGL]?: boolean; | ||
[GL.UNPACK_PREMULTIPLY_ALPHA_WEBGL]?: boolean; | ||
[GL.UNPACK_COLORSPACE_CONVERSION_WEBGL]?: GL.NONE | GL.BROWSER_DEFAULT_WEBGL; | ||
[GL.UNPACK_ROW_LENGTH]?: number; | ||
@@ -153,0 +172,0 @@ [GL.UNPACK_IMAGE_HEIGHT]?: number; |
{ | ||
"name": "@luma.gl/constants", | ||
"version": "9.0.11", | ||
"version": "9.1.0-alpha.1", | ||
"description": "WebGL2 constants", | ||
@@ -46,3 +46,3 @@ "type": "module", | ||
}, | ||
"gitHead": "82c56392f73c3f7b258e2928d687a4beca2e2838" | ||
"gitHead": "bc5c11c87f1e4db857e701688ca1410d7f51fd0f" | ||
} |
@@ -12,2 +12,3 @@ // luma.gl | ||
GLTextureCubeMapTarget, | ||
GLTexelDataFormat, | ||
GLPrimitiveTopology, | ||
@@ -26,2 +27,4 @@ GLPrimitive, | ||
GLValueParameters, | ||
GLPackParameters, | ||
GLUnpackParameters, | ||
GLFunctionParameters, | ||
@@ -28,0 +31,0 @@ GLParameters, |
@@ -47,2 +47,20 @@ // luma.gl | ||
/** Texel data formats for gl.texSubImage() */ | ||
export type GLTexelDataFormat = | ||
| GL.ALPHA // Discards the red, green and blue components and reads the alpha component. | ||
| GL.RGB // Discards the alpha components and reads the red, green and blue components. | ||
| GL.RGBA // Red, green, blue and alpha components are read from the color buffer. | ||
| GL.LUMINANCE // Each color component is a luminance component, alpha is 1.0. | ||
| GL.LUMINANCE_ALPHA // Each component is a luminance/alpha component. | ||
| GL.SRGB | ||
// | GL.SRGB_ALPHA_EXT | ||
| GL.RED | ||
| GL.RG | ||
| GL.RED_INTEGER | ||
| GL.RG_INTEGER | ||
| GL.RGB_INTEGER | ||
| GL.RGBA_INTEGER | ||
| GL.DEPTH_COMPONENT | ||
| GL.DEPTH_STENCIL; | ||
/** Rendering primitives. Constants passed to drawElements() or drawArrays() to specify what kind of primitive to render. */ | ||
@@ -69,3 +87,4 @@ export type GLPrimitiveTopology = | ||
| GL.SHORT | ||
| GL.INT; | ||
| GL.INT | ||
| GL.HALF_FLOAT; | ||
@@ -77,3 +96,8 @@ /** Pixel Data Type */ | ||
| GL.UNSIGNED_SHORT_4_4_4_4 | ||
| GL.UNSIGNED_SHORT_5_5_5_1; | ||
| GL.UNSIGNED_SHORT_5_5_5_1 | ||
| GL.UNSIGNED_INT_2_10_10_10_REV | ||
| GL.UNSIGNED_INT_10F_11F_11F_REV | ||
| GL.UNSIGNED_INT_5_9_9_9_REV | ||
| GL.UNSIGNED_INT_24_8 | ||
| GL.FLOAT_32_UNSIGNED_INT_24_8_REV; | ||
@@ -291,3 +315,9 @@ /** Uniform Type */ | ||
[GL.READ_FRAMEBUFFER_BINDING]?: Framebuffer | null; | ||
[GL.PACK_ALIGNMENT]?: number; | ||
[GL.PACK_ROW_LENGTH]?: number; | ||
[GL.PACK_SKIP_PIXELS]?: number; | ||
[GL.PACK_SKIP_ROWS]?: number; | ||
[GL.UNPACK_ALIGNMENT]?: number; | ||
@@ -297,6 +327,21 @@ [GL.UNPACK_FLIP_Y_WEBGL]?: boolean; | ||
[GL.UNPACK_COLORSPACE_CONVERSION_WEBGL]?: GL.NONE | GL.BROWSER_DEFAULT_WEBGL; | ||
[GL.UNPACK_ROW_LENGTH]?: number; | ||
[GL.UNPACK_IMAGE_HEIGHT]?: number; | ||
[GL.UNPACK_SKIP_PIXELS]?: number; | ||
[GL.UNPACK_SKIP_ROWS]?: number; | ||
[GL.UNPACK_SKIP_IMAGES]?: number; | ||
}; | ||
export type GLPackParameters = { | ||
[GL.PACK_ALIGNMENT]?: number; | ||
[GL.PACK_ROW_LENGTH]?: number; | ||
[GL.PACK_SKIP_PIXELS]?: number; | ||
[GL.PACK_SKIP_ROWS]?: number; | ||
[GL.READ_FRAMEBUFFER_BINDING]?: Framebuffer | null; | ||
}; | ||
export type GLUnpackParameters = { | ||
[GL.UNPACK_ALIGNMENT]?: number; | ||
[GL.UNPACK_FLIP_Y_WEBGL]?: boolean; | ||
[GL.UNPACK_PREMULTIPLY_ALPHA_WEBGL]?: boolean; | ||
[GL.UNPACK_COLORSPACE_CONVERSION_WEBGL]?: GL.NONE | GL.BROWSER_DEFAULT_WEBGL; | ||
[GL.UNPACK_ROW_LENGTH]?: number; | ||
@@ -303,0 +348,0 @@ [GL.UNPACK_IMAGE_HEIGHT]?: number; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
480406
19
5436
2