UNPKG

@figliolia/ripples

Version:

WebGL ripples based on the clever work of Pim Schreurs

26 lines (25 loc) 849 B
import { BrowserSupport } from "./BrowserSupport"; export declare class Textures { quad: WebGLBuffer; bufferReadIndex: number; bufferWriteIndex: number; GL: WebGLRenderingContext; textures: WebGLTexture[]; backgroundTexture: WebGLTexture; frameBuffers: WebGLFramebuffer[]; static browserSupport: BrowserSupport; transparentPixels: ImageData | undefined; constructor(context: WebGLRenderingContext); drawQuad(): void; get firstTexture(): WebGLTexture; get readTexture(): WebGLTexture; get writeTexture(): WebGLTexture; get readFrame(): WebGLFramebuffer; get writeFrame(): WebGLFramebuffer; getBrowserExtensions(): void; initialize(resolution: number): void; setTransparent(): void; swapBufferIndices(): void; private createBackground; private createImageData; }