summaryrefslogtreecommitdiffstats
path: root/src/view/renderer
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-01 00:59:13 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-01 00:59:13 +0100
commit9f2e4e6996fb96d23e1ca29667130a2111a59de5 (patch)
treefa7c3c22d469f062252735269dbc09031fc47dd8 /src/view/renderer
parent22b06efe2c2646a01535b5bbf5f3cc57de81ad0d (diff)
downloadrpgedit-9f2e4e6996fb96d23e1ca29667130a2111a59de5.tar
rpgedit-9f2e4e6996fb96d23e1ca29667130a2111a59de5.zip
Do not use default exports
Diffstat (limited to 'src/view/renderer')
-rw-r--r--src/view/renderer/renderer.ts (renamed from src/view/renderer/Renderer.ts)6
-rw-r--r--src/view/renderer/shaders.ts (renamed from src/view/renderer/Shaders.ts)6
-rw-r--r--src/view/renderer/shaders/default.fs (renamed from src/view/renderer/default.fs)0
-rw-r--r--src/view/renderer/shaders/default.vs (renamed from src/view/renderer/default.vs)0
4 files changed, 6 insertions, 6 deletions
diff --git a/src/view/renderer/Renderer.ts b/src/view/renderer/renderer.ts
index 75dc265..062c868 100644
--- a/src/view/renderer/Renderer.ts
+++ b/src/view/renderer/renderer.ts
@@ -1,8 +1,8 @@
-import { mat4, vec2 } from 'gl-matrix';
+import { Shaders } from './shaders';
-import Shaders from './Shaders';
+import { mat4, vec2 } from 'gl-matrix';
-export default class Renderer {
+export class Renderer {
private readonly viewScale = 64;
private readonly gl: WebGLRenderingContext;
diff --git a/src/view/renderer/Shaders.ts b/src/view/renderer/shaders.ts
index da75a18..8fd1fda 100644
--- a/src/view/renderer/Shaders.ts
+++ b/src/view/renderer/shaders.ts
@@ -1,7 +1,7 @@
-import fragmentShaderSrc from './default.fs';
-import vertexShaderSrc from './default.vs';
+import fragmentShaderSrc from './shaders/default.fs';
+import vertexShaderSrc from './shaders/default.vs';
-export default class Shaders {
+export class Shaders {
public readonly viewportLoc: WebGLUniformLocation;
public readonly translateLoc: WebGLUniformLocation;
diff --git a/src/view/renderer/default.fs b/src/view/renderer/shaders/default.fs
index 2c8ad15..2c8ad15 100644
--- a/src/view/renderer/default.fs
+++ b/src/view/renderer/shaders/default.fs
diff --git a/src/view/renderer/default.vs b/src/view/renderer/shaders/default.vs
index 4715a17..4715a17 100644
--- a/src/view/renderer/default.vs
+++ b/src/view/renderer/shaders/default.vs