Package com.jme3.post
Class PreDepthProcessor
java.lang.Object
com.jme3.post.PreDepthProcessor
- All Implemented Interfaces:
 SceneProcessor
Processor that lays depth first, this can improve performance in complex
 scenes.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Called when the SP is removed from the RM.voidinitialize(RenderManager rm, ViewPort vp) Called in the render thread to initialize the scene processor.booleanvoidpostFrame(FrameBuffer out) Called after a frame has been rendered and the queue flushed.voidpostQueue(RenderQueue rq) Called after the scene graph has been queued, but before it is flushed.voidpreFrame(float tpf) Called before a framevoidCalled when the resolution of the viewport has been changed.voidsetProfiler(AppProfiler profiler) Sets a profiler Instance for this processor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jme3.post.SceneProcessor
rescale 
- 
Constructor Details
- 
PreDepthProcessor
 
 - 
 - 
Method Details
- 
initialize
Description copied from interface:SceneProcessorCalled in the render thread to initialize the scene processor.- Specified by:
 initializein interfaceSceneProcessor- Parameters:
 rm- The render manager to which the SP was added tovp- The viewport to which the SP is assigned
 - 
reshape
Description copied from interface:SceneProcessorCalled when the resolution of the viewport has been changed.- Specified by:
 reshapein interfaceSceneProcessor- Parameters:
 vp- the affected ViewPortw- the new width (in pixels)h- the new height (in pixels)
 - 
isInitialized
public boolean isInitialized()- Specified by:
 isInitializedin interfaceSceneProcessor- Returns:
 - True if initialize() has been called on this SceneProcessor, false if otherwise.
 
 - 
preFrame
public void preFrame(float tpf) Description copied from interface:SceneProcessorCalled before a frame- Specified by:
 preFramein interfaceSceneProcessor- Parameters:
 tpf- Time per frame
 - 
postQueue
Description copied from interface:SceneProcessorCalled after the scene graph has been queued, but before it is flushed.- Specified by:
 postQueuein interfaceSceneProcessor- Parameters:
 rq- The render queue
 - 
postFrame
Description copied from interface:SceneProcessorCalled after a frame has been rendered and the queue flushed.- Specified by:
 postFramein interfaceSceneProcessor- Parameters:
 out- The FB to which the scene was rendered.
 - 
cleanup
public void cleanup()Description copied from interface:SceneProcessorCalled when the SP is removed from the RM.- Specified by:
 cleanupin interfaceSceneProcessor
 - 
setProfiler
Description copied from interface:SceneProcessorSets a profiler Instance for this processor.- Specified by:
 setProfilerin interfaceSceneProcessor- Parameters:
 profiler- the profiler instance.
 
 -