sdf-2d/build/src/graphics/rendering/rendering-pass.d.ts
schmelczerandras 77bde04db3 Add files
2020-09-15 10:08:16 +02:00

12 lines
598 B
TypeScript

import { IDrawable } from '../drawables/i-drawable';
import { IDrawableDescriptor } from '../drawables/i-drawable-descriptor';
import { FrameBuffer } from '../graphics-library/frame-buffer/frame-buffer';
export declare class RenderingPass {
private frame;
private drawables;
private program;
constructor(gl: WebGL2RenderingContext, shaderSources: [string, string], drawableDescriptors: Array<IDrawableDescriptor>, frame: FrameBuffer);
initialize(): Promise<void>;
addDrawable(drawable: IDrawable): void;
render(commonUniforms: any, inputTexture?: WebGLTexture): void;
}