Canvas::[renderWith -> render]

This commit is contained in:
cha0s 2019-03-25 20:27:07 -05:00
parent b03abf5907
commit 0c2c9d53a9
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class CanvasBase {
return this.renderTexture;
}
renderWith(renderable, renderer) {
render(renderable, renderer) {
renderer.render(renderable, this);
}

View File

@ -39,7 +39,7 @@ export class TilesRenderer {
// Blit to canvas.
const canvasSize = Vector.mul(size, tileSize);
const canvas = new Canvas(canvasSize);
canvas.renderWith(container, renderer);
canvas.render(container, renderer);
container.destroy();
// Convert to image and return.
const image = canvas.toImage();