public class NiftyJmeDisplay
extends java.lang.Object
implements com.jme3.post.SceneProcessor
| Modifier and Type | Class and Description |
|---|---|
protected class |
NiftyJmeDisplay.ResourceLocationJme |
| Modifier and Type | Field and Description |
|---|---|
protected com.jme3.asset.AssetManager |
assetManager |
protected JmeBatchRenderBackend |
batchRendererBackend |
protected int |
h |
protected boolean |
inited |
protected com.jme3.input.InputManager |
inputManager |
protected InputSystemJme |
inputSys |
protected de.lessvoid.nifty.Nifty |
nifty |
protected RenderDeviceJme |
renderDev |
protected com.jme3.renderer.Renderer |
renderer |
protected com.jme3.renderer.RenderManager |
renderManager |
protected NiftyJmeDisplay.ResourceLocationJme |
resourceLocation |
protected SoundDeviceJme |
soundDev |
protected com.jme3.renderer.ViewPort |
vp |
protected int |
w |
| Constructor and Description |
|---|
NiftyJmeDisplay() |
NiftyJmeDisplay(com.jme3.asset.AssetManager assetManager,
com.jme3.input.InputManager inputManager,
com.jme3.audio.AudioRenderer audioRenderer,
com.jme3.renderer.ViewPort vp)
Create a standard NiftyJmeDisplay.
|
NiftyJmeDisplay(com.jme3.asset.AssetManager assetManager,
com.jme3.input.InputManager inputManager,
com.jme3.audio.AudioRenderer audioRenderer,
com.jme3.renderer.ViewPort viewport,
int atlasWidth,
int atlasHeight)
Deprecated.
use the static factory methods
newNiftyJmeDisplay(com.jme3.asset.AssetManager, com.jme3.input.InputManager, com.jme3.audio.AudioRenderer, com.jme3.renderer.ViewPort)
or newNiftyJmeDisplay(com.jme3.asset.AssetManager, com.jme3.input.InputManager, com.jme3.audio.AudioRenderer, com.jme3.renderer.ViewPort, de.lessvoid.nifty.render.batch.BatchRenderConfiguration)
instead of this constructor. |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
de.lessvoid.nifty.Nifty |
getNifty() |
void |
initialize(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
boolean |
isInitialized() |
static NiftyJmeDisplay |
newNiftyJmeDisplay(com.jme3.asset.AssetManager assetManager,
com.jme3.input.InputManager inputManager,
com.jme3.audio.AudioRenderer audioRenderer,
com.jme3.renderer.ViewPort viewport)
Create a new NiftyJmeDisplay for use with the Batched Nifty Renderer.
|
static NiftyJmeDisplay |
newNiftyJmeDisplay(com.jme3.asset.AssetManager assetManager,
com.jme3.input.InputManager inputManager,
com.jme3.audio.AudioRenderer audioRenderer,
com.jme3.renderer.ViewPort viewport,
de.lessvoid.nifty.render.batch.BatchRenderConfiguration batchRenderConfiguration)
Create a new NiftyJmeDisplay for use with the Batched Nifty Renderer.
|
void |
postFrame(com.jme3.texture.FrameBuffer out) |
void |
postQueue(com.jme3.renderer.queue.RenderQueue rq) |
void |
preFrame(float tpf) |
void |
reshape(com.jme3.renderer.ViewPort vp,
int w,
int h) |
void |
setProfiler(com.jme3.profile.AppProfiler profiler) |
void |
simulateKeyEvent(com.jme3.input.event.KeyInputEvent event) |
protected boolean inited
protected de.lessvoid.nifty.Nifty nifty
protected com.jme3.asset.AssetManager assetManager
protected com.jme3.renderer.RenderManager renderManager
protected com.jme3.input.InputManager inputManager
protected RenderDeviceJme renderDev
protected JmeBatchRenderBackend batchRendererBackend
protected InputSystemJme inputSys
protected SoundDeviceJme soundDev
protected com.jme3.renderer.Renderer renderer
protected com.jme3.renderer.ViewPort vp
protected NiftyJmeDisplay.ResourceLocationJme resourceLocation
protected int w
protected int h
public NiftyJmeDisplay()
public NiftyJmeDisplay(com.jme3.asset.AssetManager assetManager,
com.jme3.input.InputManager inputManager,
com.jme3.audio.AudioRenderer audioRenderer,
com.jme3.renderer.ViewPort viewport,
int atlasWidth,
int atlasHeight)
newNiftyJmeDisplay(com.jme3.asset.AssetManager, com.jme3.input.InputManager, com.jme3.audio.AudioRenderer, com.jme3.renderer.ViewPort)
or newNiftyJmeDisplay(com.jme3.asset.AssetManager, com.jme3.input.InputManager, com.jme3.audio.AudioRenderer, com.jme3.renderer.ViewPort, de.lessvoid.nifty.render.batch.BatchRenderConfiguration)
instead of this constructor.assetManager - jME AssetManagerinputManager - jME InputManageraudioRenderer - jME AudioRendererviewport - Viewport to useatlasWidth - the width of the texture atlas Nifty uses to speed up rendering (2048 is a good value)atlasHeight - the height of the texture atlas Nifty uses to speed up rendering (2048 is a good value)public NiftyJmeDisplay(com.jme3.asset.AssetManager assetManager,
com.jme3.input.InputManager inputManager,
com.jme3.audio.AudioRenderer audioRenderer,
com.jme3.renderer.ViewPort vp)
assetManager - jME AssetManagerinputManager - jME InputManageraudioRenderer - jME AudioRenderervp - Viewport to usepublic static NiftyJmeDisplay newNiftyJmeDisplay(com.jme3.asset.AssetManager assetManager, com.jme3.input.InputManager inputManager, com.jme3.audio.AudioRenderer audioRenderer, com.jme3.renderer.ViewPort viewport)
newNiftyJmeDisplay(com.jme3.asset.AssetManager, com.jme3.input.InputManager, com.jme3.audio.AudioRenderer, com.jme3.renderer.ViewPort, de.lessvoid.nifty.render.batch.BatchRenderConfiguration)
when you want to change the default BatchRenderConfiguration and provide
your own.assetManager - jME AssetManagerinputManager - jME InputManageraudioRenderer - jME AudioRendererviewport - Viewport to usepublic static NiftyJmeDisplay newNiftyJmeDisplay(com.jme3.asset.AssetManager assetManager, com.jme3.input.InputManager inputManager, com.jme3.audio.AudioRenderer audioRenderer, com.jme3.renderer.ViewPort viewport, de.lessvoid.nifty.render.batch.BatchRenderConfiguration batchRenderConfiguration)
assetManager - jME AssetManagerinputManager - jME InputManageraudioRenderer - jME AudioRendererviewport - Viewport to usebatchRenderConfiguration - the Nifty BatchRenderConfiguration that
you can use to further configure batch rendering. If unsure you
can simply use new BatchRenderConfiguration() in here for the
default configuration which should give you good default values.public void initialize(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp)
initialize in interface com.jme3.post.SceneProcessorpublic de.lessvoid.nifty.Nifty getNifty()
public void simulateKeyEvent(com.jme3.input.event.KeyInputEvent event)
public void reshape(com.jme3.renderer.ViewPort vp,
int w,
int h)
reshape in interface com.jme3.post.SceneProcessorpublic boolean isInitialized()
isInitialized in interface com.jme3.post.SceneProcessorpublic void preFrame(float tpf)
preFrame in interface com.jme3.post.SceneProcessorpublic void postQueue(com.jme3.renderer.queue.RenderQueue rq)
postQueue in interface com.jme3.post.SceneProcessorpublic void postFrame(com.jme3.texture.FrameBuffer out)
postFrame in interface com.jme3.post.SceneProcessorpublic void cleanup()
cleanup in interface com.jme3.post.SceneProcessorpublic void setProfiler(com.jme3.profile.AppProfiler profiler)
setProfiler in interface com.jme3.post.SceneProcessor