Package com.jme.scene

Examples of com.jme.scene.Text


    KeyBindingManager.getKeyBindingManager().set( "higher", KeyInput.KEY_Y );

    KeyBindingManager.getKeyBindingManager().set( "1", KeyInput.KEY_1 );
    KeyBindingManager.getKeyBindingManager().set( "2", KeyInput.KEY_2 );

    Text t = new Text( "Text", "Y/H: raise/lower waterheight" );
    t.setRenderQueueMode( Renderer.QUEUE_ORTHO );
    t.setLightCombineMode( LightState.OFF );
    t.setLocalTranslation( new Vector3f( 0, 20, 1 ) );
    fpsNode.attachChild( t );

    t = new Text( "Text", "E: debug show/hide reflection and refraction textures" );
    t.setRenderQueueMode( Renderer.QUEUE_ORTHO );
    t.setLightCombineMode( LightState.OFF );
    t.setLocalTranslation( new Vector3f( 0, 40, 1 ) );
    fpsNode.attachChild( t );
  }
View Full Code Here


  private void setupKeyBindings() {
    KeyBindingManager.getKeyBindingManager().set( "e", KeyInput.KEY_E );
    KeyBindingManager.getKeyBindingManager().set( "f", KeyInput.KEY_F );

    Text t = new Text( "Text", "E: debug show/hide reflection and refraction textures" );
    t.setRenderQueueMode( Renderer.QUEUE_ORTHO );
    t.setLightCombineMode( LightState.OFF );
    t.setLocalTranslation( new Vector3f( 0, 20, 1 ) );
    fpsNode.attachChild( t );
    t = new Text( "Text", "F: freeze/unfreeze waterquad movement" );
    t.setRenderQueueMode( Renderer.QUEUE_ORTHO );
    t.setLightCombineMode( LightState.OFF );
    t.setLocalTranslation( new Vector3f( 0, 40, 1 ) );
    fpsNode.attachChild( t );
  }
View Full Code Here

    font.setEnabled(true);

    // Then our font Text object.

    /** This is what will actually have the text at the bottom. */
    fps = new Text("FPS label", "");
    fps.setCullMode(SceneElement.CULL_NEVER);
    fps.setTextureCombineMode(TextureState.REPLACE);

    // Finally, a stand alone node (not attached to root on purpose)
    hud = new Node("HUD");
View Full Code Here

        // attach the sphere to the root node of our scenegraph
        rootNode.attachChild(sphere);
        // create the Text object that will display step description
        // with step 0 text
        tutorialStepText = new Text("Step", "Step 1: " + information.get(0));
        // no light effect
        tutorialStepText.setLightCombineMode(Spatial.LightCombineMode.Off);
        // no culling
        tutorialStepText.setCullHint(Spatial.CullHint.Never);
        tutorialStepText.setRenderState(Text.getDefaultFontTextureState());
View Full Code Here

TOP

Related Classes of com.jme.scene.Text

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.