@awayjs/stage
Version:
Stage for AwayJS
30 lines • 703 B
TypeScript
import { ContextWebGL } from './ContextWebGL';
export declare class PixelBufferWebGL {
private _contex;
static _lastBounded: PixelBufferWebGL;
static unboundAll(): void;
static isSuported(gl: WebGL2RenderingContext | WebGLRenderingContext): boolean;
private _alreadyInit;
private _gl;
private _buffer;
private _size;
get alive(): boolean;
constructor(_contex: ContextWebGL, size?: number);
/**
* sync
*/
read(buffer: Uint8Array): void;
/**
* bind
*/
bind(size?: number): void;
/**
* unbind
*/
unbind(): void;
/**
* destroy
*/
dispose(): void;
}
//# sourceMappingURL=PixelBufferWebGL.d.ts.map