@awayjs/stage
Version:
Stage for AwayJS
20 lines • 667 B
TypeScript
import { ContextWebGL } from './ContextWebGL';
import { PixelBufferWebGL } from './PixelBufferWebGL';
export declare class FenceContextWebGL {
private _context;
static isSupported: typeof PixelBufferWebGL.isSuported;
private _gl;
private pool;
private _tasks;
constructor(_context: ContextWebGL);
/**
* Async read from PBO.
* @see http://www.songho.ca/opengl/gl_pbo.html
*/
readPixels(x: number, y: number, width: number, height: number): Promise<PixelBufferWebGL>;
tick(): void;
release(pbo: PixelBufferWebGL): void;
unboundAll(): void;
dispose(): void;
}
//# sourceMappingURL=FenceContextWebGL.d.ts.map