mixinafFantomMappy::Renderer
afFantomMappy::Renderer
@
Js
Implement to define a low level renderer for block images.
- drawImage
abstract Void drawImage(Obj gfx, Int imageIndex, Int dstPixX, Int dstPixY, RendererDrawMode drawMode)
Draws an image of a
Block
as given byimageIndex
at the given coordinates.- restoreClip
virtual Void restoreClip(Obj gfx)
Called after a Layer is drawn to restore the clipping region to what it used to be.
- setClip
virtual Void setClip(Obj gfx, Rect viewBounds)
Called just before a Layer is drawn so the desired clipping region may be set.