j3d.org Aviatrix3D

org.j3d.aviatrix3d
Interface AudioCullStage

All Known Implementing Classes:
NullAudioCullStage

public interface AudioCullStage

Handles the scenegraph per-frame culling operations.

The culling phase generates a list of leaf nodes to render by removing non-required sections of the scene graph. How this culling is performed (if at all) is dependent on the implementation of this class. All that is defined is a complete scene graph as input, and a grouped set of nodes based on what must be kept together from a rendering perspective. Two typical culling approaches are view frustum and BSP. Others may also be implemented dependent on the application domain. Implementations may also work concepts that are not 3D geometry-based, such as audio and haptics.

Output is to be sent to the registered listener.

Version:
$Revision: 1.1 $
Author:
Alan Hudson

Method Summary
 void cull(Scene scene, int buffer)
          Update and cull the scenegraph.
 void setCulledAudioReceiver(CulledAudioReceiver sgr)
          Register a reciever for the output of the sorter.
 

Method Detail

cull

public void cull(Scene scene,
                 int buffer)
Update and cull the scenegraph. This generates an ordered list of nodes to render. It will not return until the culling is complete.

Parameters:
scene - The scene instance to cull
buffer - The buffer ID to use to output the data to when multi-threaded

setCulledAudioReceiver

public void setCulledAudioReceiver(CulledAudioReceiver sgr)
Register a reciever for the output of the sorter. If the value is null, it will clear the currently set receiver.

Parameters:
sgr - The receiver instance to add or null

j3d.org Aviatrix3D

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