Package: pumpkin.display

Graphics


Description

The Graphics class contains a set of methods for drawing shapes on a Sprite.



Constructors

Graphics

Create empty Graphics object.


Functions

HitTestDelegate

HitTest delegate.

clear

Clears the current list of graphics to be drawn.

drawSolidRectangle

Draw solid rectangle to the Sprite.

drawRectUV

Draw Rectangle using a Texture.

drawRectUV

Draw Rectangle using a Material.

drawRectUV

Draw Rectangle using a material.

cacheBounds

getBounds

Returns the draw bounds rectangle.

getBoundsRef

Returns the draw bounds rectangle as reference.

HitTest

[Obsolete] Hit test draw object (bounds only)

hitTest

Hit test draw object (bounds only)

invalidateCache

Invalidate draw cache, internal function.

getDrawOPAt

Get draw operation at index.

drawTile

Draw tile material with matrix transform.


Variables

drawOPs

Draw operation list.

hitTestCallback

Custom hit test.

dirtyMask

Flags changes to graphic elements.

perPixelHitTestEnabled

Enable per pixel hit-testing, requires the material texture to be readable.