Interface sandy.view.IScreen

Description

IScreen

Method Index

dispose(), getClip(), getColor(), getRatio(), getSize(), render(), setCamera(), setColor(), setSize()

Method Detail

setCamera

public function setCamera(c:Camera3D):Void

Set the Camera3D for the screen.

Parameters

cThe Camera3D.

getColor

public function getColor(Void):Number

Returns the background color

Return

Number The color value

setColor

public function setColor(n:Number):Void

Set the color of the background and refresh the background of the screen.

Parameters

nThe color number

getClip

public function getClip(Void):MovieClip

Return the clip container.

Return

The clip container.

render

public function render(a:Array):Void

Render the array of Face passed in arguments.

Parameters

setSize

public function setSize(r:Rectangle):Void

Resize the screen. It makes the screen bigger or smaller, and the center of the rendered animation is modified too.

Parameters

rThe new dimension of the viewport. Remember that you certainly have to change the camera projection too.

getSize

public function getSize(Void):Rectangle

Returns the rectangle representing the screen dimensions.

Return

A Rectangle.

getRatio

public function getRatio(Void):Number

Returns the ratio between the wide and height of the screen as a number

Parameters

Void

Return

The dimension ratio between width and height (width/height)

dispose

public function dispose(Void):Void

Free all the screen ressources.