|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RenderPipeline
A marker interface that represents a single complete rendering pipeline that is independent of the output device type.
A pipeline represents all of the drawing steps that may be accomplished within a rendering cycle - culling, sorting and drawing. While an end-user may wish to directly call the methods on this interface directly to control their own rendering, it is recommended that a dedicated pipeline manager be used for this task.
If the pipeline does not have a drawable surface registered, it will still complete all the steps up to that point. If no scene is registered, no functionality is performed - render() will return immediately.
Method Summary | |
---|---|
boolean |
displayOnly()
Cause the surface to redraw the next frame only, with no processing of the pipeline. |
void |
halt()
Force a halt of the current processing. |
boolean |
render()
Start the pipeline functioning now. |
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 |
setRenderableLayers(LayerCullable[] layers,
int numLayers)
Set the set of layers to be used by this pipeline. |
void |
setRequestData(RenderableRequestData data)
Set the request data that should be passed along with the next frame. |
Method Detail |
---|
void setErrorReporter(org.j3d.util.ErrorReporter reporter)
reporter
- The instance to use or nullboolean render()
The return value indicates success or failure in the ability to render this frame. Typically it will indicate failure if the underlying surface has been disposed of, either directly through the calling of the method on this interface, or through an internal check mechanism. If failure is indicated, then check to see if the surface has been disposed of and discontinue rendering if it has.
boolean displayOnly()
The return value indicates success or failure in the ability to render this frame. Typically it will indicate failure if the underlying surface has been disposed of, either directly through the calling of the method on this interface, or through an internal check mechanism. If failure is indicated, then check to see if the surface has been disposed of and discontinue rendering if it has.
void setRequestData(RenderableRequestData data)
data
- The data instance to pass this next framevoid setRenderableLayers(LayerCullable[] layers, int numLayers)
If a scene is currently set, and a non-zero number of layers is provided, this will remove the scene and use the layers instead.
layers
- The collection of layers, in order, to rendernumLayers
- The number of valid layers to usevoid halt()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |