|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphicsSortStage
Handles any sort of rendering sort ability.
Typical sorting operations that may implement this interface are for state and transparency sorting.
A sorter will have a reciever for its output. If no receiver is registered the sorter should still operate because an implemenation could choose to poll for the output of the sorter at any time too. The output should always remain valid, regardless of whether another sort is in progress. If a sort is in progress then the output is for the previous sort step.
Method Summary | |
---|---|
void |
halt()
Force a halt of the current processing. |
void |
setErrorReporter(org.j3d.util.ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion. |
void |
setSortedGeometryReceiver(SortedGeometryReceiver sgr)
Register a reciever for the output of the sorter. |
void |
sort(GraphicsRequestData otherData,
GraphicsProfilingData profilingData,
ViewportCollection[][] layers,
int[] numLayers,
int numScenes,
OffscreenBufferRenderable[][] sceneParent)
Sort the listing of layers and nodes. |
Method Detail |
---|
void sort(GraphicsRequestData otherData, GraphicsProfilingData profilingData, ViewportCollection[][] layers, int[] numLayers, int numScenes, OffscreenBufferRenderable[][] sceneParent)
For the 2D array of layers, it contains the list of final subscenes to send to the final stage, with the second dimension describing the layers, in rendering order. The first item will always be the main scene that gets rendered to the canvas.
For the 2D array sceneParent, it allows for mapping the output of internal scenes to the holding texture node. Index 0 is the direct owner of the scene contents. Index 1 is the scene parent of the scene included (needed for pBuffer GL context handling at render time). If this second one is null, then the parent is the main canvas that is being rendered to.
otherData
- data to be passed along unprocessedprofilingData
- The timing and load datalayers
- The list of layers that need to be further processednumLayers
- The number of valid layers in each scene to processnumScenes
- The number of valid scenes to processsceneParent
- Parent node that holds the subscene in the main
scene graphvoid setSortedGeometryReceiver(SortedGeometryReceiver sgr)
sgr
- The receiver instance to add or nullvoid halt()
void setErrorReporter(org.j3d.util.ErrorReporter reporter)
reporter
- The instance to use or null
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |