Search in sources :

Example 1 with BitmapText

use of com.jme3.font.BitmapText in project jmonkeyengine by jMonkeyEngine.

the class TerrainTest method loadHintText.

public void loadHintText() {
    hintText = new BitmapText(guiFont, false);
    hintText.setSize(guiFont.getCharSet().getRenderedSize());
    hintText.setLocalTranslation(0, getCamera().getHeight(), 0);
    hintText.setText("Hit T to switch to wireframe,  P to switch to tri-planar texturing");
    guiNode.attachChild(hintText);
}
Also used : BitmapText(com.jme3.font.BitmapText)

Example 2 with BitmapText

use of com.jme3.font.BitmapText in project jmonkeyengine by jMonkeyEngine.

the class TerrainTestAdvanced method loadHintText.

public void loadHintText() {
    hintText = new BitmapText(guiFont, false);
    hintText.setSize(guiFont.getCharSet().getRenderedSize());
    hintText.setLocalTranslation(0, getCamera().getHeight(), 0);
    hintText.setText("Hit T to switch to wireframe,  P to switch to tri-planar texturing");
    guiNode.attachChild(hintText);
}
Also used : BitmapText(com.jme3.font.BitmapText)

Example 3 with BitmapText

use of com.jme3.font.BitmapText in project jmonkeyengine by jMonkeyEngine.

the class TerrainTestAndroid method loadHintText.

public void loadHintText() {
    hintText = new BitmapText(guiFont, false);
    hintText.setSize(guiFont.getCharSet().getRenderedSize());
    hintText.setLocalTranslation(0, getCamera().getHeight(), 0);
    hintText.setText("Hit T to switch to wireframe,  P to switch to tri-planar texturing");
    guiNode.attachChild(hintText);
}
Also used : BitmapText(com.jme3.font.BitmapText)

Example 4 with BitmapText

use of com.jme3.font.BitmapText in project jmonkeyengine by jMonkeyEngine.

the class TerrainTestCollision method initCrossHairs.

protected void initCrossHairs() {
    //guiFont = assetManager.loadFont("Interface/Fonts/Default.fnt");
    BitmapText ch = new BitmapText(guiFont, false);
    ch.setSize(guiFont.getCharSet().getRenderedSize() * 2);
    // crosshairs
    ch.setText("+");
    // center
    ch.setLocalTranslation(settings.getWidth() / 2 - guiFont.getCharSet().getRenderedSize() / 3 * 2, settings.getHeight() / 2 + ch.getLineHeight() / 2, 0);
    guiNode.attachChild(ch);
}
Also used : BitmapText(com.jme3.font.BitmapText)

Example 5 with BitmapText

use of com.jme3.font.BitmapText in project jmonkeyengine by jMonkeyEngine.

the class TerrainTestCollision method loadHintText.

public void loadHintText() {
    hintText = new BitmapText(guiFont, false);
    hintText.setSize(guiFont.getCharSet().getRenderedSize());
    hintText.setLocalTranslation(0, getCamera().getHeight(), 0);
    //hintText.setText("Hit T to switch to wireframe");
    hintText.setText("");
    guiNode.attachChild(hintText);
}
Also used : BitmapText(com.jme3.font.BitmapText)

Aggregations

BitmapText (com.jme3.font.BitmapText)52 Vector3f (com.jme3.math.Vector3f)10 Geometry (com.jme3.scene.Geometry)9 KeyTrigger (com.jme3.input.controls.KeyTrigger)8 Material (com.jme3.material.Material)8 BitmapFont (com.jme3.font.BitmapFont)7 DirectionalLight (com.jme3.light.DirectionalLight)5 ColorRGBA (com.jme3.math.ColorRGBA)5 Spatial (com.jme3.scene.Spatial)5 Rectangle (com.jme3.font.Rectangle)4 ChaseCamera (com.jme3.input.ChaseCamera)4 Quaternion (com.jme3.math.Quaternion)4 Node (com.jme3.scene.Node)4 Box (com.jme3.scene.shape.Box)4 Quad (com.jme3.scene.shape.Quad)4 ActionListener (com.jme3.input.controls.ActionListener)3 Wire (com.cas.circuit.vo.Wire)2 MotionPath (com.jme3.cinematic.MotionPath)2 MotionPathListener (com.jme3.cinematic.MotionPathListener)2 MotionEvent (com.jme3.cinematic.events.MotionEvent)2