|
|
@ -77,6 +77,13 @@ public class RenderDeviceJme implements RenderDevice { |
|
|
|
private Matrix4f tempMat = new Matrix4f(); |
|
|
|
private Matrix4f tempMat = new Matrix4f(); |
|
|
|
private ColorRGBA tempColor = new ColorRGBA(); |
|
|
|
private ColorRGBA tempColor = new ColorRGBA(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final RenderState noZWriteState = new RenderState(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static { |
|
|
|
|
|
|
|
noZWriteState.setDepthTest(false); |
|
|
|
|
|
|
|
noZWriteState.setDepthWrite(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static class CachedTextKey { |
|
|
|
private static class CachedTextKey { |
|
|
|
|
|
|
|
|
|
|
|
BitmapFont font; |
|
|
|
BitmapFont font; |
|
|
@ -156,6 +163,7 @@ public class RenderDeviceJme implements RenderDevice { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void beginFrame() { |
|
|
|
public void beginFrame() { |
|
|
|
|
|
|
|
rm.setForcedRenderState(noZWriteState); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void endFrame() { |
|
|
|
public void endFrame() { |
|
|
@ -163,6 +171,7 @@ public class RenderDeviceJme implements RenderDevice { |
|
|
|
textCacheLastFrame = textCacheCurrentFrame; |
|
|
|
textCacheLastFrame = textCacheCurrentFrame; |
|
|
|
textCacheCurrentFrame = temp; |
|
|
|
textCacheCurrentFrame = temp; |
|
|
|
textCacheCurrentFrame.clear(); |
|
|
|
textCacheCurrentFrame.clear(); |
|
|
|
|
|
|
|
rm.setForcedRenderState(null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getWidth() { |
|
|
|
public int getWidth() { |
|
|
|