use of net.drewke.tdme.tools.leveleditor.controller.LevelEditorEntityLibraryScreenController in project tdme by andreasdr.
the class TDMELevelEditor method init.
/**
* Initialize tdme level editor
*/
public void init(GLAutoDrawable drawable) {
engine.init(drawable);
// register gui to mouse, keyboard events
glWindow.addMouseListener(engine.getGUI());
glWindow.addKeyListener(engine.getGUI());
// init off screen engine
Tools.oseInit(drawable);
// level editor model library screen controller
levelEditorEntityLibraryScreenController = new LevelEditorEntityLibraryScreenController(popUps);
levelEditorEntityLibraryScreenController.init();
engine.getGUI().addScreen(levelEditorEntityLibraryScreenController.getScreenNode().getId(), levelEditorEntityLibraryScreenController.getScreenNode());
// pop ups
popUps.init();
//
levelEditorView = new LevelEditorView(popUps);
levelEditorView.init();
modelViewerView = new ModelViewerView(popUps);
modelViewerView.init();
triggerView = new TriggerView(popUps);
triggerView.init();
emptyView = new EmptyView(popUps);
emptyView.init();
particleSystemView = new ParticleSystemView(popUps);
particleSystemView.init();
// show up level editor view
setView(levelEditorView);
}
Aggregations