UNPKG

webgl-dsl

Version:

Thin functional WebGL wrapper with strong typed GLSL DSL

16 lines (15 loc) 553 B
import { Disposable } from './disposable'; import { RenderBuffer } from './render-buffer'; import { Gl } from './gl'; import { Texture } from './texture'; /** * Rendering target. It contains target texture and optional depth buffer. */ export declare class FrameBuffer implements Disposable { readonly gl: Gl; readonly colorBuffer: Texture; readonly depthBuffer?: RenderBuffer | undefined; readonly handle: WebGLFramebuffer; constructor(gl: Gl, colorBuffer: Texture, depthBuffer?: RenderBuffer | undefined); dispose(): void; }