BitmapDebug available on flash10+ only.
This debug draw makes use of Alchemy opcodes so you may wish to forgo it
if you do not want to be subjcet to Adobe licensing rules should you also
be using Stage3D.
This debug draw draws things pixel by pixel into alchemy memory, flushing
to a BitmapData object. Believe it or not, this is in almost all cases
'faster' than flash's built in graphics API.
Constructor
new(width:Int, height:Int, bgColour:Int = 0x333333, transparent:Bool = false)
Construct new BitmapDebug object.
Parameters:
width | The width of Debug draw viewport. |
---|---|
height | The height of Debug draw viewport. |
bgColour | The background colour for debug draw. (default 0x333333) |
transparent | If true, then the debug draw will use an ARGB bitmap with a transparent background. This will be slower. (default false) |
Returns:
The constructed BitmapDebug.
Throws:
# | If width or height are not strictly positive. |
---|