Aviatrix3D
2.1.0

org.j3d.aviatrix3d.rendering
Interface RenderEffectsProcessor


public interface RenderEffectsProcessor

Observer of the rendering system that is informed of pre and post rendering timing so that it may perform it's own additional drawing operations.

The idea is to allow various pre and post-processing activities to be performed on individual output surfaces (not just limited to the on-screen drawable, but also with pBuffers etc). An example is a full-screen jitter, blur effect or even fades/wipes between scenes. Currently the interface is very experimental.

It can be assumed that the GL context will be current for the appropriate surface before any of the methods in this interface are called. The user should not attempt any form of context state manipulation.

Version:
$Revision: 2.2 $
Author:
Justin Couch

Method Summary
 void postDraw(javax.media.opengl.GL gl, ProfilingData timingData, java.lang.Object userData)
          Perform any post-rendering actions that you may need for this scene.
 void preDraw(javax.media.opengl.GL gl, java.lang.Object userData)
          Perform any pre-rendering setup that you may need for this scene.
 

Method Detail

preDraw

void preDraw(javax.media.opengl.GL gl,
             java.lang.Object userData)
Perform any pre-rendering setup that you may need for this scene. After this call, all normal scene graph rendering is performed by the surface.

Parameters:
gl - The current GL context wrapper to draw with
userData - Some identifiable data provided by the user

postDraw

void postDraw(javax.media.opengl.GL gl,
              ProfilingData timingData,
              java.lang.Object userData)
Perform any post-rendering actions that you may need for this scene. Called after the renderer has completed all drawing and just before the buffer swap. The only thing to be called after calling this method is glFlush().

Parameters:
gl - The current GL context wrapper to draw with
timingData - Timing data for rendering operations
userData - Some identifiable data provided by the user

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org