Package: pumpkin.display

Graphics

function drawRectUV( material : Material, srcRect : Rect, drawRect : Rect ) : GraphicsDrawOP

Parameters

material

Material to draw.

srcRect

Source rectangle in UV space.

drawRect

Draw rectangle 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.