org.xith3d.render
Interface RenderEngine


public interface RenderEngine

This interface is implemented by Xith3DEnvironment.

See Also:
Xith3DEnvironment

Method Summary
 void checkRenderPreferences()
          Checks if everything is ok for the first rendering.
 void destroy()
          Clears the screen (BLACK) and destroys the display.
 OperationScheduler getOperationScheduler()
           
 void render(long nanoGameTime, long nanoFrameTime)
          Renderes all Canvas3Ds in the list that are alive.
 void setOperationScheduler(OperationScheduler opScheder)
          Sets this RenderEngine's OperationScheduler.
 

Method Detail

checkRenderPreferences

void checkRenderPreferences()
Checks if everything is ok for the first rendering. Never call this method directly. It is called by the RenderLoop.


render

void render(long nanoGameTime,
            long nanoFrameTime)
Renderes all Canvas3Ds in the list that are alive. This method is usually called by the RenderLoop thread.

Parameters:
nanoGameTime - the current game time in nanosecods
nanoFrameTime - nanosecods needed to render the last frame

destroy

void destroy()
Clears the screen (BLACK) and destroys the display.

See Also:
CanvasPeer.destroy()

setOperationScheduler

void setOperationScheduler(OperationScheduler opScheder)
Sets this RenderEngine's OperationScheduler. Normally this will be the ExtRenderLoop instance.

Parameters:
opScheder - the OperationScheduler instance

getOperationScheduler

OperationScheduler getOperationScheduler()
Returns:
this RenderEngine's OperationScheduler. Normally this will be the ExtRenderLoop instance.