|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OutputDevice
Interface representing the output of a render pipeline.
The output may be any of the traditional types: pBuffer, screen or memory or any non-traditional type like haptic devices, network streams etc.
Method Summary | |
---|---|
void |
dispose()
Instruct this surface that you have finished with the resources needed and to dispose all rendering resources. |
void |
disposeSingleThreadResources()
If the output device is marked as single threaded, this instructs the device that the current rendering thread has exited. |
boolean |
draw(ProfilingData profilingData)
Instruct the surface to draw the collected set of nodes now. |
void |
enableSingleThreaded(boolean state)
Notification that this surface is being drawn to with a single thread. |
java.lang.Object |
getSurfaceObject()
Get the underlying object that this implementation is rendered to. |
boolean |
isDisposed()
Check to see the disposal state of the surface. |
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. |
Method Detail |
---|
void setErrorReporter(org.j3d.util.ErrorReporter reporter)
reporter
- The instance to use or nullboolean draw(ProfilingData profilingData)
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.
profilingData
- The timing and load data
java.lang.Object getSurfaceObject()
void dispose()
boolean isDisposed()
dispose()
method has been called or an internal dispose handler
has detected the underlying surface is no longer valid to draw to.
void enableSingleThreaded(boolean state)
This method should never be called by end user code. It is purely for
the purposes of the RenderManager
to inform the device about what state it can expect.
state
- true if the device can expect single threaded behaviourvoid disposeSingleThreadResources()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |