summaryrefslogtreecommitdiffstats
path: root/src/view/util
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-10-31 21:55:41 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-10-31 21:55:41 +0100
commit1f9cd7a110e4fe1cf3b4eb220a083fa0f9b0cf98 (patch)
tree49e75c0cd3f3da715697106ab20e7d7f51bb9a61 /src/view/util
parent31c131289c6b37a08ea66e988eaded1cd9c9c72c (diff)
downloadrpgedit-1f9cd7a110e4fe1cf3b4eb220a083fa0f9b0cf98.tar
rpgedit-1f9cd7a110e4fe1cf3b4eb220a083fa0f9b0cf98.zip
Switch from characters to numerical tile IDs
Diffstat (limited to 'src/view/util')
-rw-r--r--src/view/util/image.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/view/util/image.ts b/src/view/util/image.ts
index 50debde..73edbba 100644
--- a/src/view/util/image.ts
+++ b/src/view/util/image.ts
@@ -1,5 +1,3 @@
-import { mapValuesAsync } from '../../util';
-
export function loadImage(url: string): Promise<HTMLImageElement> {
return new Promise((resolve, reject) => {
const img = new Image();
@@ -9,10 +7,6 @@ export function loadImage(url: string): Promise<HTMLImageElement> {
});
}
-export function loadImages(urls: Map<string, string>): Promise<Map<string, HTMLImageElement>> {
- return mapValuesAsync(loadImage, urls);
-}
-
export function mkTexture(gl: WebGLRenderingContext, src: HTMLCanvasElement|HTMLImageElement): WebGLTexture {
const texture = gl.createTexture();
if (!texture)