Aviatrix3D 1.0

org.j3d.aviatrix3d
Interface MultipassRenderObserver


public interface MultipassRenderObserver

An observer and operator for working with multipass textures.

Note: This class does nothing in Aviatrix3D 1.0

The observer is used to interact directly in a multipass rendering process. In multipass techniques, particularly those using the accumulation buffer, more than one pass through a specific set of data is used. This observer is used to allow application data to interact individually with each pass - for example to jitter the viewpoint for each pass.

This observer is not always required for multipass texture rendering. If it is not provided, then a single pass is rendered. You only need to implement and provide this if you need more than one pass.

Multipass rendering does not get processed in a stereo environment. Any multipass taking place is assumed to be written into the monoscopic back buffer before enabling the stereo processing for the final output.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Method Summary
 void beginRenderPass(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu, int passNumber)
          Notification that the given pass number is about to start.
 void endRenderPass(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu, int passNumber)
          Notification that the given pass number has just finished.
 int numPassesRequired()
          Request how many passes this instance requires to be run.
 

Method Detail

numPassesRequired

public int numPassesRequired()
Request how many passes this instance requires to be run.

Returns:
A number greater than or equal to zero

beginRenderPass

public void beginRenderPass(net.java.games.jogl.GL gl,
                            net.java.games.jogl.GLU glu,
                            int passNumber)
Notification that the given pass number is about to start.

Parameters:
passNumber - The index of the pass about to be executed
gl - The gl context to draw with
glu - The utility context to draw with

endRenderPass

public void endRenderPass(net.java.games.jogl.GL gl,
                          net.java.games.jogl.GLU glu,
                          int passNumber)
Notification that the given pass number has just finished.

Parameters:
passNumber - The index of the pass just finished
gl - The gl context to draw with
glu - The utility context to draw with

Aviatrix3D 1.0

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