Package: pumpkin.display

Graphics

function drawRectUV( material : Material, srcRect : Rect, x : float, y : float, width : float, height : float ) : GraphicsDrawOP

Parameters

material

Material to draw.

srcRect

Source rectangle in UV space.

x

Draw position in pixels

y

Draw position in pixels

width

Draw position in pixels

height

Draw position in pixels


Description
Draw Rectangle using a material.

Any material can be used, if the DisplayObject is attached to a MovieClipOverlayCameraBehaviour then no lighting will be available.