com.jme3.niftygui
Class NiftyJmeDisplay

java.lang.Object
  extended by com.jme3.niftygui.NiftyJmeDisplay
All Implemented Interfaces:
SceneProcessor

public class NiftyJmeDisplay
extends java.lang.Object
implements SceneProcessor


Nested Class Summary
protected  class NiftyJmeDisplay.ResourceLocationJme
           
 
Field Summary
protected  AssetManager assetManager
           
protected  int h
           
protected  boolean inited
           
protected  InputSystemJme inputSys
           
protected  de.lessvoid.nifty.Nifty nifty
           
protected  RenderDeviceJme renderDev
           
protected  Renderer renderer
           
protected  RenderManager renderManager
           
protected  NiftyJmeDisplay.ResourceLocationJme resourceLocation
           
protected  SoundDeviceJme soundDev
           
protected  ViewPort vp
           
protected  int w
           
 
Constructor Summary
NiftyJmeDisplay()
           
NiftyJmeDisplay(AssetManager assetManager, InputManager inputManager, AudioRenderer audioRenderer, ViewPort vp)
           
 
Method Summary
 void cleanup()
          Called when the SP is removed from the RM.
 de.lessvoid.nifty.Nifty getNifty()
           
 void initialize(RenderManager rm, ViewPort vp)
          Called in the render thread to initialize the scene processor.
 boolean isInitialized()
           
 void postFrame(FrameBuffer out)
          Called after a frame has been rendered and the queue flushed.
 void postQueue(RenderQueue rq)
          Called after the scene graph has been queued, but before it is flushed.
 void preFrame(float tpf)
          Called before a frame
 void reshape(ViewPort vp, int w, int h)
          Called when the resolution of the viewport has been changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inited

protected boolean inited

nifty

protected de.lessvoid.nifty.Nifty nifty

assetManager

protected AssetManager assetManager

renderManager

protected RenderManager renderManager

renderDev

protected RenderDeviceJme renderDev

inputSys

protected InputSystemJme inputSys

soundDev

protected SoundDeviceJme soundDev

renderer

protected Renderer renderer

vp

protected ViewPort vp

resourceLocation

protected NiftyJmeDisplay.ResourceLocationJme resourceLocation

w

protected int w

h

protected int h
Constructor Detail

NiftyJmeDisplay

public NiftyJmeDisplay()

NiftyJmeDisplay

public NiftyJmeDisplay(AssetManager assetManager,
                       InputManager inputManager,
                       AudioRenderer audioRenderer,
                       ViewPort vp)
Method Detail

initialize

public void initialize(RenderManager rm,
                       ViewPort vp)
Description copied from interface: SceneProcessor
Called in the render thread to initialize the scene processor.

Specified by:
initialize in interface SceneProcessor
Parameters:
rm - The render manager to which the SP was added to
vp - The viewport to which the SP is assigned

getNifty

public de.lessvoid.nifty.Nifty getNifty()

reshape

public void reshape(ViewPort vp,
                    int w,
                    int h)
Description copied from interface: SceneProcessor
Called when the resolution of the viewport has been changed.

Specified by:
reshape in interface SceneProcessor

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface SceneProcessor
Returns:
True if initialize() has been called on this SceneProcessor, false if otherwise.

preFrame

public void preFrame(float tpf)
Description copied from interface: SceneProcessor
Called before a frame

Specified by:
preFrame in interface SceneProcessor
Parameters:
tpf - Time per frame

postQueue

public void postQueue(RenderQueue rq)
Description copied from interface: SceneProcessor
Called after the scene graph has been queued, but before it is flushed.

Specified by:
postQueue in interface SceneProcessor
Parameters:
rq - The render queue

postFrame

public void postFrame(FrameBuffer out)
Description copied from interface: SceneProcessor
Called after a frame has been rendered and the queue flushed.

Specified by:
postFrame in interface SceneProcessor
Parameters:
out - The FB to which the scene was rendered.

cleanup

public void cleanup()
Description copied from interface: SceneProcessor
Called when the SP is removed from the RM.

Specified by:
cleanup in interface SceneProcessor