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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations