ws.setEnabled(true);
ws.setEnabled(false);
    protected void initGame() {        Vector3f max = new Vector3f(0.5f, 0.5f, 0.5f);        Vector3f min = new Vector3f(-0.5f, -0.5f, -0.5f);                WireframeState ws = display.getRenderer().getWireframeState();        ws.setEnabled(true);                AlphaState as1 = display.getRenderer().getAlphaState();        as1.setBlendEnabled(true);        as1.setSrcFunction(AlphaState.SB_SRC_ALPHA);        as1.setDstFunction(AlphaState.DB_ONE);        as1.setTestEnabled(true);        as1.setTestFunction(AlphaState.TF_GREATER);        as1.setEnabled(true);                DirectionalLight dr = new DirectionalLight();        dr.setEnabled(true);        dr.setDiffuse(new ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f));        dr.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));        dr.setDirection(new Vector3f(0.5f, -0.5f, 0));                        CullState cs = display.getRenderer().getCullState();        cs.setCullMode(CullState.CS_BACK);        cs.setEnabled(true);        //        LightState lightstate = display.getRenderer().getLightState();//        lightstate.setTwoSidedLighting(true);//        lightstate.setEnabled(true);//        lightstate.attach(dr);                        Node scene = new Node("scene");        scene.setRenderState(ws);        //scene.setRenderState(lightstate);        root = new Node("Root node");                MidPointHeightMap heightMap = new MidPointHeightMap(128, 1.9f);        TerrainPage tb = new TerrainPage("Terrain", 32, heightMap.getSize(), 5, heightMap.getHeightMap(), true);        tb.setDetailTexture(1, 4);        tb.setModelBound(new BoundingBox());        tb.updateModelBound();        scene.attachChild(tb);        scene.setRenderState(cs);                ZBufferState buf = display.getRenderer().getZBufferState();        buf.setEnabled(true);        buf.setFunction(ZBufferState.CF_LEQUAL);        TextureState font = display.getRenderer().getTextureState();        font.setTexture(            TextureManager.loadTexture(                TestTerrain.class.getClassLoader().getResource(                    "jmetest/data/font/font.png"),                Texture.MM_LINEAR,                Texture.FM_LINEAR,                true));        font.setEnabled(true);        fps = new Text("FPS counter", "");        fps.setRenderState(font);        fps.setRenderState(as1);                scene.setRenderState(buf);        root.attachChild(scene);        root.attachChild(fps);        root.setForceView(true);        root.updateGeometricState(0.0f, true);    }