Add worldToDisplayCoordinates method

This commit is contained in:
schmelczerandras 2020-10-18 15:42:38 +02:00
parent da2ae108df
commit 184d1a1e39
4 changed files with 37 additions and 7 deletions

View file

@ -143,6 +143,13 @@ export class ContextAwareRenderer implements Renderer {
);
}
public worldToDisplayCoordinates(worldCoordinates: vec2): vec2 {
return this.handle(
() => this.renderer.worldToDisplayCoordinates(worldCoordinates),
vec2.create()
);
}
public renderDrawables(): void {
return this.handle(() => this.renderer.renderDrawables(), undefined);
}