Package com.jme.scene.state

Examples of com.jme.scene.state.WireframeState


        zbuf.setEnabled(true);
        zbuf.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);
        rootNode.setRenderState(zbuf);

        // Set the wireframe state on the root node
        WireframeState wf = (WireframeState)rm.createRendererState(StateType.Wireframe);
        wf.setEnabled(true);
        rootNode.setRenderState(wf);

        // Draw some geometry that mimics the bounds, either a sphere or a
        // box. Add to the scene graph of this Entity.
        if (bounds instanceof BoundingSphere) {
View Full Code Here


   
   
   
    @Override
    protected void simpleInitGame() {
        WireframeState ws = display.getRenderer().createWireframeState();
        ws.setEnabled(true);
       
        box1 = new Box("box1", new Vector3f(30, 0, -120), 20, 20, 20);
        box1.setRenderState(ws);
        box1.updateRenderState();
       
View Full Code Here

TOP

Related Classes of com.jme.scene.state.WireframeState

Copyright © 2018 www.massapicom. 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.