Search in sources :

Example 1 with PartitionNone

use of net.drewke.tdme.engine.PartitionNone in project tdme by andreasdr.

the class ParticleSystemView method activate.

/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.tools.shared.views.View#activate()
	 */
public void activate() {
    // reset engine and partition
    engine.reset();
    engine.setPartition(new PartitionNone());
    //
    engine.getGUI().resetRenderScreens();
    engine.getGUI().addRenderScreen(particleSystemScreenController.getScreenNode().getId());
    onInitAdditionalScreens();
    engine.getGUI().addRenderScreen(popUps.getFileDialogScreenController().getScreenNode().getId());
    engine.getGUI().addRenderScreen(popUps.getInfoDialogScreenController().getScreenNode().getId());
}
Also used : PartitionNone(net.drewke.tdme.engine.PartitionNone)

Example 2 with PartitionNone

use of net.drewke.tdme.engine.PartitionNone in project tdme by andreasdr.

the class TriggerView method activate.

/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.tools.shared.views.View#activate()
	 */
public void activate() {
    // reset engine and partition
    engine.reset();
    engine.setPartition(new PartitionNone());
    //
    engine.getGUI().resetRenderScreens();
    engine.getGUI().addRenderScreen(triggerScreenController.getScreenNode().getId());
    engine.getGUI().addRenderScreen(TDMELevelEditor.getInstance().getLevelEditorEntityLibraryScreenController().getScreenNode().getId());
    engine.getGUI().addRenderScreen(popUps.getFileDialogScreenController().getScreenNode().getId());
    engine.getGUI().addRenderScreen(popUps.getInfoDialogScreenController().getScreenNode().getId());
}
Also used : PartitionNone(net.drewke.tdme.engine.PartitionNone)

Example 3 with PartitionNone

use of net.drewke.tdme.engine.PartitionNone in project tdme by andreasdr.

the class Tools method oseInit.

/**
	 * Init off screen engine for making thumbails
	 * @param drawable
	 */
public static void oseInit(GLAutoDrawable drawable) {
    osEngine = Engine.createOffScreenInstance(drawable, 128, 128);
    osEngine.setPartition(new PartitionNone());
    setDefaultLight(osEngine.getLightAt(0));
    oseScale = 0.75f;
    oseLookFromRotations = new Transformations();
    oseLookFromRotations.getRotations().add(new Rotation(-45f, new Vector3(0f, 1f, 0f)));
    oseLookFromRotations.getRotations().add(new Rotation(-45f, new Vector3(1f, 0f, 0f)));
    oseLookFromRotations.getRotations().add(new Rotation(0f, new Vector3(0f, 0f, 1f)));
    oseLookFromRotations.update();
}
Also used : PartitionNone(net.drewke.tdme.engine.PartitionNone) Transformations(net.drewke.tdme.engine.Transformations) Vector3(net.drewke.tdme.math.Vector3) Rotation(net.drewke.tdme.engine.Rotation)

Example 4 with PartitionNone

use of net.drewke.tdme.engine.PartitionNone in project tdme by andreasdr.

the class ModelViewerView method activate.

/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.tools.shared.views.View#activate()
	 */
public void activate() {
    // reset engine and partition
    engine.reset();
    engine.setPartition(new PartitionNone());
    //
    engine.getGUI().resetRenderScreens();
    engine.getGUI().addRenderScreen(modelViewerScreenController.getScreenNode().getId());
    onInitAdditionalScreens();
    engine.getGUI().addRenderScreen(popUps.getFileDialogScreenController().getScreenNode().getId());
    engine.getGUI().addRenderScreen(popUps.getInfoDialogScreenController().getScreenNode().getId());
}
Also used : PartitionNone(net.drewke.tdme.engine.PartitionNone)

Example 5 with PartitionNone

use of net.drewke.tdme.engine.PartitionNone in project tdme by andreasdr.

the class EmptyView method activate.

/*
	 * (non-Javadoc)
	 * @see net.drewke.tdme.tools.shared.views.View#activate()
	 */
public void activate() {
    // reset engine and partition
    engine.reset();
    engine.setPartition(new PartitionNone());
    //
    engine.getGUI().resetRenderScreens();
    engine.getGUI().addRenderScreen(emptyScreenController.getScreenNode().getId());
    engine.getGUI().addRenderScreen(TDMELevelEditor.getInstance().getLevelEditorEntityLibraryScreenController().getScreenNode().getId());
    engine.getGUI().addRenderScreen(popUps.getFileDialogScreenController().getScreenNode().getId());
    engine.getGUI().addRenderScreen(popUps.getInfoDialogScreenController().getScreenNode().getId());
}
Also used : PartitionNone(net.drewke.tdme.engine.PartitionNone)

Aggregations

PartitionNone (net.drewke.tdme.engine.PartitionNone)5 Rotation (net.drewke.tdme.engine.Rotation)1 Transformations (net.drewke.tdme.engine.Transformations)1 Vector3 (net.drewke.tdme.math.Vector3)1