Package | robotlegs.bender.extensions.sarsContextView.api |
Interface | public interface ISARSContextView |
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();
Method | Defined By | ||
---|---|---|---|
render():void
Render all Starling and Away3D instances. | ISARSContextView |