mixinafFantomMappy::Renderer

afFantomMappy::Renderer

@Js

Implement to define a low level renderer for block images.

drawImage

Source

abstract Void drawImage(Obj gfx, Int imageIndex, Int dstPixX, Int dstPixY, RendererDrawMode drawMode)

Draws an image of a Block as given by imageIndex at the given coordinates.

restoreClip

Source

virtual Void restoreClip(Obj gfx)

Called after a Layer is drawn to restore the clipping region to what it used to be.

setClip

Source

virtual Void setClip(Obj gfx, Rect viewBounds)

Called just before a Layer is drawn so the desired clipping region may be set.