jsgbc
Version:
jsGBC Core Emulator
35 lines (34 loc) • 891 B
TypeScript
import GameBoy from "./GameBoy";
export default class LCD {
private gameboy;
context: any;
offscreenContext: any;
offscreenWidth: number;
offscreenHeight: number;
offscreenRgbaCount: number;
width: number;
height: number;
swizzledFrame: Uint8Array;
canvasBuffer: any;
newFrameAvailable: boolean;
resizer: any;
drewBlank: number;
colorizedGbPalettes: any;
offscreenCanvas: any;
canvas: any;
offscreenRgbCount: number;
constructor(gameboy: GameBoy, { canvas, context, offscreenCanvas, offscreenContext, width, height }: {
canvas: any;
context: any;
offscreenCanvas: any;
offscreenContext: any;
width: any;
height: any;
});
init(): void;
drawToCanvas(): void;
draw(): void;
outputFrameBuffer(): void;
turnOff(): void;
clearFrameBuffer(): void;
}