@luma.gl/core
Version:
WebGL2 Components for High Performance Rendering and Computation
79 lines (73 loc) • 1.36 kB
JavaScript
// CORE MODULE EXPORTS FOR LUMA.GL
// GLTOOLS
export {
createGLContext,
instrumentGLContext,
isWebGL,
isWebGL2,
getParameters,
setParameters,
withParameters,
resetParameters,
cssToDeviceRatio,
cssToDevicePixels
} from '@luma.gl/gltools';
// WEBGL
export {
lumaStats,
FEATURES,
hasFeature,
hasFeatures,
Buffer,
Program,
Framebuffer,
Renderbuffer,
Texture2D,
TextureCube,
VertexShader,
FragmentShader,
clear,
// Copy and Blit
readPixelsToArray,
readPixelsToBuffer,
cloneTextureFrom,
copyToTexture,
// WebGL2 classes & Extensions
Texture3D,
TransformFeedback
} from '@luma.gl/webgl';
// ENGINE
export {
AnimationLoop,
Model,
Transform,
ProgramManager,
Timeline,
Geometry,
ClipSpace,
ConeGeometry,
CubeGeometry,
CylinderGeometry,
IcoSphereGeometry,
PlaneGeometry,
SphereGeometry,
TruncatedConeGeometry
} from '@luma.gl/engine';
// TODO/CLEAN UP FOR V7
// We should have a minimal set of forwarding exports from shadertools (ideally none)
// Analyze risk of breaking apps
export {
// HELPERS
normalizeShaderModule,
// SHADER MODULES
fp32,
fp64,
project,
dirlight,
picking,
gouraudLighting,
phongLighting,
pbr
} from '@luma.gl/shadertools';
// UTILS: undocumented API for other luma.gl modules
export {log, assert, uid} from '@luma.gl/webgl';