Commit ce9c15fe authored by Christian Winter's avatar Christian Winter

wip. cleanup

parent 2ae37cad
......@@ -35,7 +35,6 @@
<script src="scripts/states/MeasureState.js"></script>
<script src="scripts/managers/Camera.js"></script>
<script src="scripts/input/MouseHandler.js"></script>
<script src="scripts/input/Input.js"></script>
<script src="scripts/input/CanvasKeyHandler.js"></script>
<script src="scripts/Utilities.js"></script>
......
......@@ -32,7 +32,6 @@
Logic.start();
//Renderer.setContext(this.currentView.context);
this.layoutGUI();
......
......@@ -112,8 +112,4 @@
chosenOne = new Vector2(chosenOne.y, chosenOne.x);
return chosenOne;
}
drawLine(p1, p2, color) {
Renderer.drawLineFromTo(p1, p2, this.thickness, color, false, true, true);
}
}
\ No newline at end of file
class MouseHandler {
}
\ No newline at end of file
......@@ -22,35 +22,6 @@ let mirrorY = false;
let placePolarGridCenterAt2DCursor = false;
function onLoad() {
GUI.init();
Preferences.init();
Key.init();
Input.init();
MouseHandler.init();
Logic.init();
Saver.init();
File.init();
Application.currentView.camera.init();
Renderer.init();
RenderManager.init();
Utilities.init();
Exporter.init();
LineManipulator.init();
Settings.init();
Selection.init();
GridManager.init();
ActionHistory.init();
PrefabManager.init();
GUI.genereateGridSettings();
Logic.start();
}
class Logic {
static init() {
console.log("Logic created.");
......
class RenderManager {
static init() {
this.renderFile();
}
static renderFile() {
// layers below current layer
let i;
for (i = File.layers.length - 1; i >= 0; --i) {
if (File.layers[i] == File.currentLayer)
break;
this.renderLayer(File.layers[i]);
}
// current Layer
this.renderCurrentLayer();
this.renderSelection();
// layers above current layer
for (i=i-1; i >= 0; --i)
this.renderLayer(File.layers[i]);
}
static renderLayer(layer) {
//Renderer.drawLayer(layer);
}
static renderCurrentLayer() {
//Renderer.drawLayer(File.currentLayer);
}
static renderSelection() {
//Renderer.drawSelection();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment