Improve API

This commit is contained in:
schmelczerandras 2020-09-16 11:31:26 +02:00
parent b2c2cfcb41
commit 78444d8cc6
24 changed files with 193 additions and 325 deletions

View file

@ -0,0 +1,14 @@
import { vec2 } from 'gl-matrix';
import { Drawable } from '../../drawables/drawable';
export interface Renderer {
setViewArea(topLeft: vec2, size: vec2): void;
addDrawable(drawable: Drawable): void;
renderDrawables(): void;
autoscaleQuality(deltaTime: DOMHighResTimeStamp): void;
readonly canvasSize: vec2;
setCursorPosition(position: vec2): void;
}