Package de.venjinx.jme3.tests

Source Code of de.venjinx.jme3.tests.SimpleApp

package de.venjinx.jme3.tests;

import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;

import de.venjinx.editor.debug.DebugState;

public class SimpleApp extends SimpleApplication {

    public SimpleApp() {
        showSettings = false;
    }

    @Override
    public void simpleInitApp() {
        DebugState debug = new DebugState();
        stateManager.attach(debug);

        Box b = new Box(new Vector3f(0, 0, 0), new Vector3f(1, 1, 1));
        Geometry g = new Geometry("", b);
        g.setMaterial(new Material(assetManager, "Common/MatDefs/Misc/ShowNormals.j3md"));
        rootNode.attachChild(g);
    }

    public static void main(String[] args) {
        SimpleApp app = new SimpleApp();
        app.start();
    }

}
TOP

Related Classes of de.venjinx.jme3.tests.SimpleApp

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.