Class sandy.skin.PrelitTextureSkin

Implemented Interfaces

Skin

Description

PrelitTextureSkin Like a normal textures skin except that it pre-calculates a set of lit bitmaps to speed up rendering. There must be a light specified in the world for the rendering to work correctly.

Field Index

DEFAULT_TEXTURE_COUNT

Inherited from TextureSkin

Inherited from BasicSkin

Method Index

new PrelitTextureSkin()
begin(), dispose(), updateTextures()

Inherited from TextureSkin

Inherited from BasicSkin

Constructor Detail

PrelitTextureSkin

public function PrelitTextureSkin(t:BitmapData, numTextures:Number)

Field Detail

DEFAULT_TEXTURE_COUNT

static public DEFAULT_TEXTURE_COUNT

Method Detail

updateTextures

public function updateTextures(t:BitmapData):Void

Recalculate the set of textures for a new bitmap The lighting model matches that of the normal MovieSkin and TextureSkin where the range is from black to the plain bitmap, rather than from black to bitmap to white.

begin

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

Start the rendering of the Skin

Parameters

fThe face which is being rendered
mcThe mc where the face will be build.

Specified By

begin() in sandy.skin.Skin

Overrides

begin() in sandy.skin.TextureSkin

dispose

public function dispose(Void):Void