Package com.jme3.post
Interface SceneProcessor
- All Known Implementing Classes:
- AbstractShadowRenderer,- AbstractShadowRendererVR,- AWTFrameProcessor,- AwtPanel,- BasicShadowRenderer,- DirectionalLightShadowRenderer,- DirectionalLightShadowRendererVR,- FilterPostProcessor,- HDRRenderer,- NiftyJmeDisplay,- PointLightShadowRenderer,- PreDepthProcessor,- PssmShadowRenderer,- ReflectionProcessor,- ScreenshotAppState,- SimpleWaterProcessor,- SimpleWaterProcessor.RefractionProcessor,- SpotLightShadowRenderer,- VRDirectionalLightShadowRenderer
public interface SceneProcessor
Scene processors are used to compute/render things before and after the classic render of the scene.
 They have to be added to a viewport and are rendered in the order they've been added
- 
Method SummaryModifier 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 framedefault voidCalled when the scale of the viewport has been changed.voidCalled when the resolution of the viewport has been changed.voidsetProfiler(AppProfiler profiler) Sets a profiler Instance for this processor.
- 
Method Details- 
initializeCalled in the render thread to initialize the scene processor.- Parameters:
- rm- The render manager to which the SP was added to
- vp- The viewport to which the SP is assigned
 
- 
reshapeCalled when the resolution of the viewport has been changed.- Parameters:
- vp- the affected ViewPort
- w- the new width (in pixels)
- h- the new height (in pixels)
 
- 
rescaleCalled when the scale of the viewport has been changed.- Parameters:
- vp- the affected ViewPort
- x- the new horizontal scale
- y- the new vertical scale
 
- 
isInitializedboolean isInitialized()- Returns:
- True if initialize() has been called on this SceneProcessor, false if otherwise.
 
- 
preFramevoid preFrame(float tpf) Called before a frame- Parameters:
- tpf- Time per frame
 
- 
postQueueCalled after the scene graph has been queued, but before it is flushed.- Parameters:
- rq- The render queue
 
- 
postFrameCalled after a frame has been rendered and the queue flushed.- Parameters:
- out- The FB to which the scene was rendered.
 
- 
cleanupvoid cleanup()Called when the SP is removed from the RM.
- 
setProfilerSets a profiler Instance for this processor.- Parameters:
- profiler- the profiler instance.
 
 
-