org.xith3d.render
Interface RenderCallback

All Known Implementing Classes:
RenderCallbackAdapter

public interface RenderCallback

A RenderCallback can be attached to a RenderPass.
Before the assotiated RenderPass'es Nodes are rendered, the callback method is invoked.


Nested Class Summary
static class RenderCallback.RenderCallbackNotifier
           
 
Method Summary
 void afterRenderPassCompleted(RenderPass renderPass, OpenGLLayer openGLLayer, java.lang.Object glObj)
          This method is invoked by the Renderer from the render thread.
 void afterRenderPassIsProcessed(RenderPass renderPass)
          This method is invoked by the Renderer from the render thread.
 void afterRenderPassIsSetUp(RenderPass renderPass, OpenGLLayer openGLLayer, java.lang.Object glObj)
          This method is invoked by the Renderer from the render thread.
 void afterRenderTargetIsActivated(RenderPass renderPass, RenderTarget renderTarget, OpenGLLayer openGLLayer, java.lang.Object glObj)
          This method is invoked after the given RenderTarget is being activated.
 void afterRenderTargetIsDeactivated(RenderPass renderPass, RenderTarget renderTarget, OpenGLLayer openGLLayer, java.lang.Object glObj)
          This method is invoked after the given RenderTarget is being deactivated.
 void beforeRenderPassIsProcessed(RenderPass renderPass)
          This method is invoked by the Renderer from the render thread.
 void beforeRenderPassIsRendered(RenderPass renderPass, OpenGLLayer openGLLayer, java.lang.Object glObj)
          This method is invoked by the Renderer from the render thread.
 void beforeRenderTargetIsActivated(RenderPass renderPass, RenderTarget renderTarget, OpenGLLayer openGLLayer, java.lang.Object glObj)
          This method is invoked before the given RenderTarget is being activated.
 void beforeRenderTargetIsDeactivated(RenderPass renderPass, RenderTarget renderTarget, OpenGLLayer openGLLayer, java.lang.Object glObj)
          This method is invoked before the given RenderTarget is being deactivated.
 

Method Detail

beforeRenderPassIsProcessed

void beforeRenderPassIsProcessed(RenderPass renderPass)
This method is invoked by the Renderer from the render thread. When this method is invoked, the RenderPass is about to be processed (e.g. shapes being culled).

Parameters:
renderPass -

afterRenderPassIsProcessed

void afterRenderPassIsProcessed(RenderPass renderPass)
This method is invoked by the Renderer from the render thread. When this method is invoked, the RenderPass is processed (e.g. shapes being culled).

Parameters:
renderPass -

beforeRenderPassIsRendered

void beforeRenderPassIsRendered(RenderPass renderPass,
                                OpenGLLayer openGLLayer,
                                java.lang.Object glObj)
This method is invoked by the Renderer from the render thread. When this method is invoked, the RenderPass is about to be prepared.

Parameters:
renderPass -
openGLLayer - the used OpenGLLayer
glObj - In JOGL mode, this is the GLCanvas, in LWJGL this is null

beforeRenderTargetIsActivated

void beforeRenderTargetIsActivated(RenderPass renderPass,
                                   RenderTarget renderTarget,
                                   OpenGLLayer openGLLayer,
                                   java.lang.Object glObj)
This method is invoked before the given RenderTarget is being activated.

Parameters:
renderPass -
renderTarget -
openGLLayer - the used OpenGLLayer
glObj -

afterRenderTargetIsActivated

void afterRenderTargetIsActivated(RenderPass renderPass,
                                  RenderTarget renderTarget,
                                  OpenGLLayer openGLLayer,
                                  java.lang.Object glObj)
This method is invoked after the given RenderTarget is being activated.

Parameters:
renderPass -
renderTarget -
openGLLayer - the used OpenGLLayer
glObj -

afterRenderPassIsSetUp

void afterRenderPassIsSetUp(RenderPass renderPass,
                            OpenGLLayer openGLLayer,
                            java.lang.Object glObj)
This method is invoked by the Renderer from the render thread. When this method is invoked, the RenderPass is fully set up.

Parameters:
renderPass -
openGLLayer - the used OpenGLLayer
glObj - In JOGL mode, this is the GLCanvas, in LWJGL this is null

beforeRenderTargetIsDeactivated

void beforeRenderTargetIsDeactivated(RenderPass renderPass,
                                     RenderTarget renderTarget,
                                     OpenGLLayer openGLLayer,
                                     java.lang.Object glObj)
This method is invoked before the given RenderTarget is being deactivated.

Parameters:
renderPass -
renderTarget -
openGLLayer - the used OpenGLLayer
glObj -

afterRenderTargetIsDeactivated

void afterRenderTargetIsDeactivated(RenderPass renderPass,
                                    RenderTarget renderTarget,
                                    OpenGLLayer openGLLayer,
                                    java.lang.Object glObj)
This method is invoked after the given RenderTarget is being deactivated.

Parameters:
renderPass -
renderTarget -
openGLLayer - the used OpenGLLayer
glObj -

afterRenderPassCompleted

void afterRenderPassCompleted(RenderPass renderPass,
                              OpenGLLayer openGLLayer,
                              java.lang.Object glObj)
This method is invoked by the Renderer from the render thread. When this method is invoked, the RenderPass is fully set up.

Parameters:
renderPass -
openGLLayer - the used OpenGLLayer
glObj - In JOGL mode, this is the GLCanvas, in LWJGL this is null