Packagerobotlegs.bender.extensions.sarsContextView.api
Interfacepublic interface ISARSContextView

The ISARSContextView interface defines contract between core SARS application and another external application.

This interface is created so that SARS context view can be rendered on demand. This is usefull when creating multiple components which are also based on SARS. You should also pass stage3DProxy instance and register it in its context so that they can draw on the same canvas.

For example lets take that you are loading gallery which is using SARS extension and defines 3 layers:

Now you need to use this gallery in your fancy pants application based using SARS extension as well. So you need to render your gallery at on point because its layers need to keep the same structure and order and not mix with your application.

Lets define your sample app layers:

So your app would define following rendering order:

     stage3DProxy.clear();
     
     myAppBackground.nextFrame();
     someAmbient3DStuffView3D.render();
     gallery.render();
     appNavigation.nextFrame();
     
     stage3DProxy.present();
     



Public Methods
 MethodDefined By
  
render():void
Render all Starling and Away3D instances.
ISARSContextView
Method Detail
render()method
public function render():void

Render all Starling and Away3D instances.

On Starling instances, call nextFrame function and on View3D instance call render function.