public interface SceneProcessor
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Called when the SP is removed from the RM.
|
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
|
default void |
rescale(ViewPort vp,
float x,
float y)
Called when the scale of the viewport has been changed.
|
void |
reshape(ViewPort vp,
int w,
int h)
Called when the resolution of the viewport has been changed.
|
void |
setProfiler(AppProfiler profiler)
Sets a profiler Instance for this processor.
|
void initialize(RenderManager rm, ViewPort vp)
rm
- The render manager to which the SP was added tovp
- The viewport to which the SP is assignedvoid reshape(ViewPort vp, int w, int h)
vp
- the affected ViewPortw
- the new width (in pixels)h
- the new height (in pixels)default void rescale(ViewPort vp, float x, float y)
vp
- the affected ViewPortx
- the new horizontal scaley
- the new vertical scaleboolean isInitialized()
void preFrame(float tpf)
tpf
- Time per framevoid postQueue(RenderQueue rq)
rq
- The render queuevoid postFrame(FrameBuffer out)
out
- The FB to which the scene was rendered.void cleanup()
void setProfiler(AppProfiler profiler)
profiler
- the profiler instance.