@luma.gl/gltools
Advanced tools
Comparing version
export { log } from '@luma.gl/api'; | ||
export type { WebGLDeviceProps } from '@luma.gl/webgl'; | ||
export { WebGLDevice, getWebGLDevice } from '@luma.gl/webgl'; | ||
export type { GLContextOptions } from './classic/context-api'; | ||
export { createGLContext, instrumentGLContext, resizeGLContext, hasFeature, hasFeatures, getFeatures, getContextInfo, getGLContextInfo, getContextLimits, getContextDebugInfo } from './classic/context-api'; | ||
export { isWebGL, isWebGL2, getWebGL2Context, assertWebGLContext, assertWebGL2Context } from '@luma.gl/webgl'; | ||
@@ -11,5 +11,47 @@ export { cssToDeviceRatio, cssToDevicePixels } from '@luma.gl/webgl'; | ||
export { polyfillContext } from '@luma.gl/webgl'; | ||
export type { GLContextOptions } from '@luma.gl/webgl'; | ||
export { createGLContext, instrumentGLContext, resizeGLContext, hasFeature, hasFeatures, getFeatures, getContextInfo, getGLContextInfo, getContextLimits, getContextDebugInfo } from '@luma.gl/webgl'; | ||
export { FEATURES } from '@luma.gl/webgl'; | ||
export { DEPRECATED_FEATURES as FEATURES } from './classic/features'; | ||
export { Accessor } from '@luma.gl/webgl'; | ||
export type { BufferProps as BufferProps } from '@luma.gl/webgl'; | ||
export { Buffer } from '@luma.gl/webgl'; | ||
export { parseUniformName, getUniformSetter } from './classic/uniforms'; | ||
export type { Texture2DProps } from './classic/texture-2d'; | ||
export { default as Texture2D } from './classic/texture-2d'; | ||
export { default as TextureCube } from './classic/texture-cube'; | ||
export type { ProgramProps } from './classic/program'; | ||
export { default as Program } from './classic/program'; | ||
export type { ClassicFramebufferProps as FramebufferProps } from './classic/framebuffer'; | ||
export { default as Framebuffer } from './classic/framebuffer'; | ||
export type { RenderbufferProps } from './classic/renderbuffer'; | ||
export { default as Renderbuffer } from './classic/renderbuffer'; | ||
export type { ShaderProps } from './classic/shader'; | ||
export { Shader, VertexShader, FragmentShader } from './classic/shader'; | ||
export { clear, clearBuffer } from './classic/clear'; | ||
export { readPixelsToArray, readPixelsToBuffer, copyToDataUrl, copyToImage, copyToTexture, blit } from './classic/copy-and-blit'; | ||
export type { QueryProps } from './classic/query'; | ||
export { default as Query } from './classic/query'; | ||
export { default as Texture3D } from './classic/texture-3d'; | ||
export type { TransformFeedbackProps } from './classic/transform-feedback'; | ||
export { default as TransformFeedback } from './classic/transform-feedback'; | ||
export type { VertexArrayObjectProps } from './classic/vertex-array-object'; | ||
export { default as VertexArrayObject } from './classic/vertex-array-object'; | ||
export type { VertexArrayProps } from './classic/vertex-array'; | ||
export { default as VertexArray } from './classic/vertex-array'; | ||
export { default as UniformBufferLayout } from './classic/uniform-buffer-layout'; | ||
export { cloneTextureFrom } from './webgl-utils/texture-utils'; | ||
export { getKeyValue, getKey } from './webgl-utils/constants-to-keys'; | ||
export { getDebugTableForUniforms } from './debug/debug-uniforms'; | ||
export { getDebugTableForVertexArray } from './debug/debug-vertex-array'; | ||
export { getDebugTableForProgramConfiguration } from './debug/debug-program-configuration'; | ||
export type { ClassicAnimationLoopProps, ClassicAnimationProps } from './engine/classic-animation-loop'; | ||
export { default as ClassicAnimationLoop } from './engine/classic-animation-loop'; | ||
export type { ClassicModelProps } from './engine/classic-model'; | ||
export { default as ClassicModel } from './engine/classic-model'; | ||
export type { ClassicAnimationLoopProps as AnimationLoopProps } from './engine/classic-animation-loop'; | ||
export type { ClassicAnimationProps as AnimationProps } from './engine/classic-animation-loop'; | ||
export { default as AnimationLoop } from './engine/classic-animation-loop'; | ||
export type { ClassicModelProps as ModelProps } from './engine/classic-model'; | ||
export { default as Model } from './engine/classic-model'; | ||
export { default as ProgramManager } from './engine/program-manager'; | ||
export { default as Transform } from './transform/transform'; | ||
export { default as ClipSpace } from './engine/classic-clip-space'; | ||
//# sourceMappingURL=index.d.ts.map |
export { log } from '@luma.gl/api'; | ||
export { WebGLDevice, getWebGLDevice } from '@luma.gl/webgl'; | ||
export { createGLContext, instrumentGLContext, resizeGLContext, hasFeature, hasFeatures, getFeatures, getContextInfo, getGLContextInfo, getContextLimits, getContextDebugInfo } from './classic/context-api'; | ||
export { isWebGL, isWebGL2, getWebGL2Context, assertWebGLContext, assertWebGL2Context } from '@luma.gl/webgl'; | ||
@@ -9,4 +9,32 @@ export { cssToDeviceRatio, cssToDevicePixels } from '@luma.gl/webgl'; | ||
export { polyfillContext } from '@luma.gl/webgl'; | ||
export { createGLContext, instrumentGLContext, resizeGLContext, hasFeature, hasFeatures, getFeatures, getContextInfo, getGLContextInfo, getContextLimits, getContextDebugInfo } from '@luma.gl/webgl'; | ||
export { FEATURES } from '@luma.gl/webgl'; | ||
export { DEPRECATED_FEATURES as FEATURES } from './classic/features'; | ||
export { Accessor } from '@luma.gl/webgl'; | ||
export { Buffer } from '@luma.gl/webgl'; | ||
export { parseUniformName, getUniformSetter } from './classic/uniforms'; | ||
export { default as Texture2D } from './classic/texture-2d'; | ||
export { default as TextureCube } from './classic/texture-cube'; | ||
export { default as Program } from './classic/program'; | ||
export { default as Framebuffer } from './classic/framebuffer'; | ||
export { default as Renderbuffer } from './classic/renderbuffer'; | ||
export { Shader, VertexShader, FragmentShader } from './classic/shader'; | ||
export { clear, clearBuffer } from './classic/clear'; | ||
export { readPixelsToArray, readPixelsToBuffer, copyToDataUrl, copyToImage, copyToTexture, blit } from './classic/copy-and-blit'; | ||
export { default as Query } from './classic/query'; | ||
export { default as Texture3D } from './classic/texture-3d'; | ||
export { default as TransformFeedback } from './classic/transform-feedback'; | ||
export { default as VertexArrayObject } from './classic/vertex-array-object'; | ||
export { default as VertexArray } from './classic/vertex-array'; | ||
export { default as UniformBufferLayout } from './classic/uniform-buffer-layout'; | ||
export { cloneTextureFrom } from './webgl-utils/texture-utils'; | ||
export { getKeyValue, getKey } from './webgl-utils/constants-to-keys'; | ||
export { getDebugTableForUniforms } from './debug/debug-uniforms'; | ||
export { getDebugTableForVertexArray } from './debug/debug-vertex-array'; | ||
export { getDebugTableForProgramConfiguration } from './debug/debug-program-configuration'; | ||
export { default as ClassicAnimationLoop } from './engine/classic-animation-loop'; | ||
export { default as ClassicModel } from './engine/classic-model'; | ||
export { default as AnimationLoop } from './engine/classic-animation-loop'; | ||
export { default as Model } from './engine/classic-model'; | ||
export { default as ProgramManager } from './engine/program-manager'; | ||
export { default as Transform } from './transform/transform'; | ||
export { default as ClipSpace } from './engine/classic-clip-space'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@luma.gl/gltools", | ||
"version": "8.6.0-alpha.5", | ||
"version": "9.0.0-alpha.3", | ||
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext", | ||
@@ -32,6 +32,8 @@ "license": "MIT", | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "8.6.0-alpha.5", | ||
"@luma.gl/constants": "9.0.0-alpha.3", | ||
"@luma.gl/engine": "9.0.0-alpha.3", | ||
"@luma.gl/webgl": "9.0.0-alpha.3", | ||
"@probe.gl/log": "^3.5.0" | ||
}, | ||
"gitHead": "c07a1da6a4cac293a1b10658adcaafe872ac9efe" | ||
"gitHead": "3f259d0de774c6b98dd5ded61e64a0bd9f58b61e" | ||
} |
111
src/index.ts
@@ -0,7 +1,23 @@ | ||
// luma.gl, MIT license | ||
// DEPRECATION WARNING | ||
// This is the `@luma.gl/gltools` module which contains the now deprecated luma.gl v8 WebGL-only API. | ||
// Use `@luma.gl/api` to access the new API which supports both WebGL and WebGPU. | ||
// Utils | ||
export {log} from '@luma.gl/api'; | ||
// export type {WebGLDeviceProps, WebGLDeviceInfo, WebGPUDeviceLimits} from './lib/webgl-device'; | ||
export type {WebGLDeviceProps} from '@luma.gl/webgl'; | ||
export {WebGLDevice, getWebGLDevice} from '@luma.gl/webgl'; | ||
// GLTOOLS | ||
export type {GLContextOptions} from './classic/context-api'; | ||
export { | ||
createGLContext, | ||
instrumentGLContext, | ||
resizeGLContext, | ||
hasFeature, | ||
hasFeatures, | ||
getFeatures, | ||
getContextInfo, | ||
getGLContextInfo, | ||
getContextLimits, | ||
getContextDebugInfo | ||
} from './classic/context-api'; | ||
@@ -42,19 +58,78 @@ export { | ||
// DEPRECATED | ||
export type {GLContextOptions} from '@luma.gl/webgl'; | ||
// Features | ||
export {DEPRECATED_FEATURES as FEATURES} from './classic/features'; | ||
// WebGL Helper Classes | ||
export {Accessor} from '@luma.gl/webgl'; | ||
export type {BufferProps as BufferProps} from '@luma.gl/webgl'; | ||
export {Buffer} from '@luma.gl/webgl'; | ||
export {parseUniformName, getUniformSetter} from './classic/uniforms'; | ||
// WebGL1 classes | ||
export type {Texture2DProps} from './classic/texture-2d'; | ||
export {default as Texture2D} from './classic/texture-2d'; | ||
export {default as TextureCube} from './classic/texture-cube'; | ||
export type {ProgramProps} from './classic/program'; | ||
export {default as Program} from './classic/program'; | ||
export type {ClassicFramebufferProps as FramebufferProps} from './classic/framebuffer'; | ||
export {default as Framebuffer} from './classic/framebuffer'; | ||
export type {RenderbufferProps} from './classic/renderbuffer'; | ||
export {default as Renderbuffer} from './classic/renderbuffer'; | ||
// Classic luma.gl classes (For backwards compatibility) | ||
export type {ShaderProps} from './classic/shader'; | ||
export {Shader, VertexShader, FragmentShader} from './classic/shader'; | ||
export {clear, clearBuffer} from './classic/clear'; | ||
// Copy and Blit | ||
export { | ||
createGLContext, | ||
instrumentGLContext, | ||
resizeGLContext, | ||
hasFeature, | ||
hasFeatures, | ||
getFeatures, | ||
getContextInfo, | ||
getGLContextInfo, | ||
getContextLimits, | ||
getContextDebugInfo | ||
} from '@luma.gl/webgl'; | ||
readPixelsToArray, | ||
readPixelsToBuffer, | ||
copyToDataUrl, | ||
copyToImage, | ||
copyToTexture, | ||
blit | ||
} from './classic/copy-and-blit'; | ||
// Features | ||
export {FEATURES} from '@luma.gl/webgl'; | ||
// WebGL2 classes & Extensions | ||
export type {QueryProps} from './classic/query'; | ||
export {default as Query} from './classic/query'; | ||
export {default as Texture3D} from './classic/texture-3d'; | ||
export type {TransformFeedbackProps} from './classic/transform-feedback'; | ||
export {default as TransformFeedback} from './classic/transform-feedback'; | ||
export type {VertexArrayObjectProps} from './classic/vertex-array-object'; | ||
export {default as VertexArrayObject} from './classic/vertex-array-object'; | ||
export type {VertexArrayProps} from './classic/vertex-array'; | ||
export {default as VertexArray} from './classic/vertex-array'; | ||
export {default as UniformBufferLayout} from './classic/uniform-buffer-layout'; | ||
// WebGL Functions | ||
export {cloneTextureFrom} from './webgl-utils/texture-utils'; | ||
export {getKeyValue, getKey} from './webgl-utils/constants-to-keys'; | ||
// INTERNAL | ||
export {getDebugTableForUniforms} from './debug/debug-uniforms'; | ||
export {getDebugTableForVertexArray} from './debug/debug-vertex-array'; | ||
export {getDebugTableForProgramConfiguration} from './debug/debug-program-configuration'; | ||
// luma.gl v8 Engine API | ||
export type {ClassicAnimationLoopProps, ClassicAnimationProps} from './engine/classic-animation-loop'; | ||
export {default as ClassicAnimationLoop} from './engine/classic-animation-loop'; | ||
export type {ClassicModelProps} from './engine/classic-model'; | ||
export {default as ClassicModel} from './engine/classic-model'; | ||
export type {ClassicAnimationLoopProps as AnimationLoopProps} from './engine/classic-animation-loop'; | ||
export type {ClassicAnimationProps as AnimationProps} from './engine/classic-animation-loop'; | ||
export {default as AnimationLoop} from './engine/classic-animation-loop'; | ||
export type {ClassicModelProps as ModelProps} from './engine/classic-model'; | ||
export {default as Model} from './engine/classic-model'; | ||
export {default as ProgramManager} from './engine/program-manager'; | ||
export {default as Transform} from './transform/transform'; | ||
export {default as ClipSpace} from './engine/classic-clip-space'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
941096
9430.09%207
1625%13298
16732.91%5
66.67%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed