Allen Chou
unread,Feb 26, 2010, 9:52:07 PM2/26/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to stardust-par...@googlegroups.com
The purpose of bitmap renderers is "baking" display objects onto a bitmap. If you have to draw multiple complex vector shapes, the CPU cost rises up pretty fast. An alternative is to draw these shapes onto a bitmap, and this is when bitmap renderers come in handy. Also, drawing particles onto bitmaps allow you to further apply bitmap effects to the bitmap data, such as blurring and color transformation.
The BitmapRenderer draws each particle's display object onto a bitmap. The SingularBitmapRenderer contains a reference to a single display object to be drawn onto the bitmap, and uses the particles for determining the position and rotation of drawing; the DisplayObjectClass basically has no effect on this renderer, since it determines the display object for particles on its own. Finally, the PixelRenderer renders 1-by-1 pixels onto a bitmap, with colors determined by the Color initializer; same as the singular bitmap renderer, the DisplayObjectClass initializer has no effect on this renderer, either, since this renderer only draws pixels.