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

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.

getBounds

Returns the draw bounds rectangle.

HitTest

Hit test draw object (bounds only)

invalidateCache

Invalidate draw cache, internal function.

getDrawOPAt

Get draw operation at index.


Variables

drawOPs

Draw operation list.