Gnash
0.8.10
|
Render a dynamic mask for a specified DisplayObject. More...
#include <DisplayObject.h>
Public Member Functions | |
MaskRenderer (Renderer &r, const DisplayObject &o) | |
~MaskRenderer () |
Render a dynamic mask for a specified DisplayObject.
Dynamic masks are rendered out-of-turn when the object they are masking is drawn. A MaskRenderer object should be constructed at the beginning of relevant display() functions; it then takes care of rendering the mask with the appropriate transform and cleaning up afterwards.
gnash::DisplayObject::MaskRenderer::MaskRenderer | ( | Renderer & | r, |
const DisplayObject & | o | ||
) |
gnash::DisplayObject::MaskRenderer::~MaskRenderer | ( | ) |
References _renderer, and gnash::Renderer::disable_mask().