2.0.4 • Published 6 months ago
@types/gl-fbo v2.0.4
Installation
npm install --save @types/gl-fbo
Summary
This package contains type definitions for gl-fbo (https://github.com/stackgl/gl-fbo).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl-fbo.
index.d.ts
// Type definitions for gl-fbo 2.0
// Project: https://github.com/stackgl/gl-fbo
// Definitions by: Nick Krichevsky <https://github.com/ollien>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import texture2D = require('gl-texture2d');
type Texture = ReturnType<typeof texture2D>;
declare class FrameBuffer {
shape: [number, number];
gl: WebGLRenderingContext;
handle: WebGLFramebuffer;
color: Texture[];
depth: Texture|null;
bind(): void;
dispose(): void;
}
interface FrameBufferOptions {
preferFloat?: boolean | undefined;
float?: boolean | undefined;
color?: number | undefined;
depth?: boolean | undefined;
stencil?: boolean | undefined;
}
declare function glFBO(
gl: WebGLRenderingContext,
shape: [number, number],
options?: FrameBufferOptions
): FrameBuffer;
export = glFBO;
Additional Details
- Last updated: Thu, 08 Jul 2021 12:02:10 GMT
- Dependencies: @types/gl-texture2d
- Global values: none
Credits
These definitions were written by Nick Krichevsky.