mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
2.4 KiB
2.4 KiB
Overview
luma.gl is split into several modules that are each responsible for a particular part of the rendering stack:
engine: High-level constructs such asModel,AnimationLoopandGeometrythat allow a developer to work without worrying about rendering pipeline details.webgl: Wrapper classes around WebGL objects such asProgram,Buffer,VertexArraythat allow a developer to manager the rendering pipeline directly but with a more convenient API.shadertools: A system for modularizing and composing GLSL shader code.debug: Tooling to aid in debugging.
luma.gl also exposes a core module that simply re-exports key parts of the other modules. This can be helpful to just get started without worrying too much about fine-grained control of dependencies. The core module re-exports the following functions and classes from other modules:
| Module | Exports |
|---|---|
@luma.gl/engine |
AnimationLoop, Model, Transform, ProgramManager, Timeline, Geometry, ClipSpace, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry |
@luma.gl/api |
lumaStats, FEATURES, hasFeature, hasFeatures, Buffer, Program, Framebuffer, Renderbuffer, Texture2D, TextureCube, clear, readPixelsToArray, readPixelsToBuffer, cloneTextureFrom, copyToTexture, Texture3D, TransformFeedback |
@luma.gl/webgl |
|
@luma.gl/webgpu |
|
@luma.gl/gltools |
createGLContext, instrumentGLContext, isWebGL, isWebGL2, getParameters, setParameters, withParameters, resetParameters, cssToDeviceRatio, cssToDevicePixels |
@luma.gl/experimental |