Add worldToDisplayCoordinates method
This commit is contained in:
parent
da2ae108df
commit
184d1a1e39
4 changed files with 37 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue