|
|
@ -195,13 +195,14 @@ public class RenderDeviceJme implements RenderDevice { |
|
|
|
|
|
|
|
|
|
|
|
RenderFontJme jmeFont = (RenderFontJme) font; |
|
|
|
RenderFontJme jmeFont = (RenderFontJme) font; |
|
|
|
|
|
|
|
|
|
|
|
BitmapText text = textCacheLastFrame.get(font+str+color); |
|
|
|
String key = font+str+color.getColorString(); |
|
|
|
|
|
|
|
BitmapText text = textCacheLastFrame.get(key); |
|
|
|
if (text == null) { |
|
|
|
if (text == null) { |
|
|
|
text = jmeFont.createText(); |
|
|
|
text = jmeFont.createText(); |
|
|
|
text.setText(str); |
|
|
|
text.setText(str); |
|
|
|
text.updateLogicalState(0); |
|
|
|
text.updateLogicalState(0); |
|
|
|
} |
|
|
|
} |
|
|
|
textCacheCurrentFrame.put(font+str+color, text); |
|
|
|
textCacheCurrentFrame.put(key, text); |
|
|
|
|
|
|
|
|
|
|
|
niftyMat.setColor("Color", convertColor(color, tempColor)); |
|
|
|
niftyMat.setColor("Color", convertColor(color, tempColor)); |
|
|
|
niftyMat.setBoolean("UseTex", true); |
|
|
|
niftyMat.setBoolean("UseTex", true); |
|
|
|