IScreen Screen
new ClipScreen()public function getColor(Void):NumberReturns the background color
Number The color value
public function setColor(n:Number):VoidSet the color of the background
n | The color number |
public function setCamera(c:Camera3D):Void
Set the Camera3D for the screen.
c | The Camera3D.
|
public function getCamera(Void):Camera3D
Get the screen corresponding Camera3D.
c The Camera3D.
public function setSize(r:Rectangle):VoidResize the screen. It makes the screen bigger or smaller, and the center of the rendered animation is modified too.
r | The new dimension of the viewport. Remember that you certainly have to change the camera projection too. |
public function getSize(Void):RectangleReturns the rectangle representing the screen dimensions.
A Rectangle.
public function getRatio(Void):NumberReturns the ratio between the wide and height of the screen as a number
Void |
The dimension ratio between width and height (width/height)
public function getClip(Void):MovieClipReturn the container clip. This is very usefull if you want to apply a filter to the whole scene! The filter will be applied on the parent MovieClip, rathen than the skins who apply the filters to the faces only.
The clip container.
public function render(a:Array):Void
render the array of Face passed in arguments.
a | The array of Face.
|