public class ReflectionProcessor extends java.lang.Object implements SceneProcessor
| Constructor and Description |
|---|
ReflectionProcessor(Camera reflectionCam,
FrameBuffer reflectionBuffer,
Plane reflectionClipPlane)
Creates a ReflectionProcessor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Called when the SP is removed from the RM.
|
FrameBuffer |
getReflectionBuffer()
Internal use only
returns the frame buffer |
Camera |
getReflectionCam()
returns the reflection cam
|
Plane |
getReflectionClipPlane()
returns the reflection clip plane
|
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.
|
void |
setProfiler(AppProfiler profiler)
Sets a profiler Instance for this processor.
|
void |
setReflectionBuffer(FrameBuffer reflectionBuffer)
Internal use only
sets the frame buffer |
void |
setReflectionCam(Camera reflectionCam)
sets the reflection cam
|
void |
setReflectionClipPlane(Plane reflectionClipPlane)
Sets the reflection clip plane
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrescalepublic ReflectionProcessor(Camera reflectionCam, FrameBuffer reflectionBuffer, Plane reflectionClipPlane)
reflectionCam - the cam to use for reflectionreflectionBuffer - the FrameBuffer to render toreflectionClipPlane - the clipping planepublic void initialize(RenderManager rm, ViewPort vp)
SceneProcessorinitialize in interface SceneProcessorrm - The render manager to which the SP was added tovp - The viewport to which the SP is assignedpublic void reshape(ViewPort vp, int w, int h)
SceneProcessorreshape in interface SceneProcessorvp - the affected ViewPortw - the new width (in pixels)h - the new height (in pixels)public boolean isInitialized()
isInitialized in interface SceneProcessorpublic void preFrame(float tpf)
SceneProcessorpreFrame in interface SceneProcessortpf - Time per framepublic void postQueue(RenderQueue rq)
SceneProcessorpostQueue in interface SceneProcessorrq - The render queuepublic void postFrame(FrameBuffer out)
SceneProcessorpostFrame in interface SceneProcessorout - The FB to which the scene was rendered.public void cleanup()
SceneProcessorcleanup in interface SceneProcessorpublic void setProfiler(AppProfiler profiler)
SceneProcessorsetProfiler in interface SceneProcessorprofiler - the profiler instance.public FrameBuffer getReflectionBuffer()
public void setReflectionBuffer(FrameBuffer reflectionBuffer)
reflectionBuffer - the FrameBuffer to use (alias created)public Camera getReflectionCam()
public void setReflectionCam(Camera reflectionCam)
reflectionCam - the Camera to use (alias created)public Plane getReflectionClipPlane()
public void setReflectionClipPlane(Plane reflectionClipPlane)
reflectionClipPlane - the Plane to use (alias created)