espresso3d.engine.renderer
Class E3DExternalRenderable

java.lang.Object
  extended byespresso3d.engine.renderer.E3DExternalRenderable

public class E3DExternalRenderable
extends java.lang.Object

Author:
Curt ExternalRenderable's are essentially timed E3DRenderable objects. They can be created and added to either a viewport or the engine itself and can be used to do any sort of rendering you see fit. You could use them to make a completely new rendering algorithm (maybe BSP trees, etc) for you application. Simply create it, make it do whatever it needs to do in the E3DRenderable's render procedure, and add it to a viewport to make it viewport specific, or the engine to make it engine specific.

Constructor Summary
E3DExternalRenderable(E3DRenderable renderable, int timeoutFrames)
           
 
Method Summary
 E3DRenderable getRenderable()
           
 int getTimeoutFrames()
           
 void setRenderable(E3DRenderable renderable)
           
 void setTimeoutFrames(int timeoutFrames)
           
 boolean update()
          Returns true if the item has been in the engine's externalRenderable list longer than its timeout is set to allow it to
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E3DExternalRenderable

public E3DExternalRenderable(E3DRenderable renderable,
                             int timeoutFrames)
Method Detail

update

public boolean update()
Returns true if the item has been in the engine's externalRenderable list longer than its timeout is set to allow it to

Returns:

getRenderable

public E3DRenderable getRenderable()
Returns:
Returns the renderable.

setRenderable

public void setRenderable(E3DRenderable renderable)
Parameters:
renderable - The renderable to set.

getTimeoutFrames

public int getTimeoutFrames()
Returns:
Returns the timeoutFrames.

setTimeoutFrames

public void setTimeoutFrames(int timeoutFrames)
Parameters:
timeoutFrames - The timeoutFrames to set.