GoodBoyDigital/pixi.js — pull request #129 by donpark (2013-05-19 03:02:35+00:00)
Title: support custom display objects in CanvasRenderer

Sometimes customer rendering must be done at specific point in time during render, for example to add dynamic lighting on top of static background but below moving sprites.

This simple change checks to see if `DisplayObject` has a function named `renderCanvas` and if so call it with Canvas context and transform.

If accepted, similar change should be made on WebGLRenderer for function named something like `renderWebGL`.