Added a test for cloning BitmapText.

revert-573-cleanup_build_scripts
Paul Speed 8 years ago
parent e879a0e142
commit da1b7da329
  1. 15
      jme3-examples/src/main/java/jme3test/app/TestCloneSpatial.java

@ -35,6 +35,8 @@ package jme3test.app;
import java.lang.reflect.*;
import java.util.*;
import com.jme3.asset.*;
import com.jme3.font.*;
import com.jme3.light.*;
import com.jme3.material.*;
import com.jme3.math.*;
@ -97,6 +99,19 @@ public class TestCloneSpatial {
System.out.println("-------- cloning spatial without cloning material --------------");
clone = root.clone(false);
dump("", clone);
System.out.println("-------- cloning BitmapText ------------");
DesktopAssetManager assets = new DesktopAssetManager(true);
BitmapFont font = assets.loadFont("Interface/Fonts/Console.fnt");
BitmapText text1 = new BitmapText(font);
text1.setText("Testing");
System.out.println("Original:");
dump("", text1);
System.out.println("Clone:");
clone = text1.clone();
dump("", clone);
}

Loading…
Cancel
Save