|
Aviatrix3D 2.0 Beta 2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.output.audio.OpenALAudioDevice
Implementation of the most basic audio device, supporting the minimal number of features using OpenAL.
Constructor Summary | |
OpenALAudioDevice()
Construct a surface that requires the given set of capabilities. |
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()
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 surface is rendered to. |
boolean |
isDisposed()
Check to see the disposal state of the surface. |
void |
queueDeletedObject(DeletableRenderable obj)
An object has been detected as being deleted (no internal or external references to it left) and it needs to be cleaned up. |
void |
setDrawableObjects(AudioInstructions commands)
Update the list of items to be rendered to the current list. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OpenALAudioDevice()
Method Detail |
public void setDrawableObjects(AudioInstructions commands)
setDrawableObjects
in interface AudioOutputDevice
commands
- The list of drawable surfaces to renderpublic void setErrorReporter(org.j3d.util.ErrorReporter reporter)
setErrorReporter
in interface OutputDevice
reporter
- The instance to use or nullpublic void queueDeletedObject(DeletableRenderable obj)
cleanup()
method called and then the
reference to it should be discarded.
queueDeletedObject
in interface OutputDevice
obj
- The instance to queuepublic boolean draw()
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.
draw
in interface OutputDevice
public java.lang.Object getSurfaceObject()
getSurfaceObject
in interface OutputDevice
public void dispose()
dispose
in interface OutputDevice
public boolean isDisposed()
dispose()
method has been called or an internal dispose handler
has detected the underlying surface is no longer valid to draw to.
isDisposed
in interface OutputDevice
public 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.
enableSingleThreaded
in interface OutputDevice
state
- true if the device can expect single threaded behaviourpublic void disposeSingleThreadResources()
disposeSingleThreadResources
in interface OutputDevice
|
Aviatrix3D 2.0 Beta 2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |