Interface sandy.skin.Skin

Description

Represent a skin for a Face in an Object3D.

Method Index

begin(), end(), getType(), setLightingEnable()

Method Detail

begin

public function begin(f:IPolygon, mc:MovieClip):Void

Prepare the Face drawing of the Object3D into a MovieClip.

This method can be called when the mb.sandy.view.IScreen#render(Array) is executed, depending of the type of the Skin that must be applyed to the Face. /p>

mc represent the MovieClip where the Face must be displayed. The f represents the face which is calling the Skin. The skin can call all the public properties of the face

Parameters

fThe face calling the skin method
mcThe MovieClip

end

public function end(f:IPolygon, mc:MovieClip):Void

Finish the Face drawing of the Object3D into a MovieClip.

This method can be called when the mb.sandy.view.IScreen#render(Array) is executed, depending of the type of the Skin that must be applyed to the Face. /p>

mc represent the MovieClip where the Face must be displayed. The f represents the face which is calling the Skin. The skin can call all the public properties of the face

Parameters

fThe face calling the skin method
mcThe MovieClip

setLightingEnable

public function setLightingEnable(bool:Boolean):Void

setLightingEnable. Prepare the skin to use the world light or not. The default value is false.

Parameters

boolBoolean true is the skin use the light of the world, false if no.

Return

Void

getType

public function getType(Void):SkinType

getType, returns the type of the skin

Parameters

Void

Return

The appropriate SkinType