Add glMatrix
This commit is contained in:
parent
582979d3ed
commit
e88b4589d2
26 changed files with 211 additions and 358 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import { Vec2 } from '../math/vec2';
|
||||
import { Rectangle } from '../math/rectangle';
|
||||
import { vec2 } from 'gl-matrix';
|
||||
|
||||
export interface Drawer {
|
||||
startFrame(): void;
|
||||
finishFrame(): void;
|
||||
giveUniforms(uniforms: any): void;
|
||||
setCameraPosition(position: Vec2): void;
|
||||
setInViewArea(size: number): Vec2;
|
||||
setCameraPosition(position: vec2): void;
|
||||
setCursorPosition(position: vec2): void;
|
||||
setInViewArea(size: number): vec2;
|
||||
drawInfoText(text: string): void;
|
||||
isOnScreen(position: Vec2): boolean;
|
||||
isOnScreen(position: vec2): boolean;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue