aboutsummaryrefslogtreecommitdiff
path: root/web/pw-visualizer/src/webgl/text.ts
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2021-12-29 22:54:30 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2021-12-29 22:54:30 +0100
commit71ee6c99e963d96286cae8d0bfc2f20a9c9c920b (patch)
treec4d290c4a658853436477cb07cd469684c64f8e3 /web/pw-visualizer/src/webgl/text.ts
parent0c6d978442b244ca3f29c1ffdd44b5007ae7ad93 (diff)
downloadplanetwars.dev-71ee6c99e963d96286cae8d0bfc2f20a9c9c920b.tar.xz
planetwars.dev-71ee6c99e963d96286cae8d0bfc2f20a9c9c920b.zip
move assets to visualizer package
Diffstat (limited to 'web/pw-visualizer/src/webgl/text.ts')
-rw-r--r--web/pw-visualizer/src/webgl/text.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/pw-visualizer/src/webgl/text.ts b/web/pw-visualizer/src/webgl/text.ts
index 3f1cec6..fdfbc55 100644
--- a/web/pw-visualizer/src/webgl/text.ts
+++ b/web/pw-visualizer/src/webgl/text.ts
@@ -4,6 +4,7 @@ import { Texture } from "./texture";
import { DefaultRenderable } from "./renderer";
import { IndexBuffer, VertexBuffer } from "./buffer";
import { VertexBufferLayout, VertexArray } from "./vertexBufferLayout";
+import { fontPng } from "../assets";
export enum Align {
@@ -188,5 +189,5 @@ export function defaultLabelFactory(gl: WebGLRenderingContext, shader: Shader):
},
};
- return new LabelFactory(gl, '/static/res/assets/font.png', fontInfo, shader);
+ return new LabelFactory(gl, fontPng, fontInfo, shader);
}