Double-buffering
The double-buffering member functions can be used to prevent the screen from flickering when many objects are manipulated. For each manager view, this feature requires the allocation of a hidden bitmap the size of the view. Depending on the number of views and the color model, double-buffering may consume a large amount of memory.
The member functions that handle double-buffering are:
-
IlvManager::isDoubleBuffering
-
IlvManager::setDoubleBuffering
You must use the setBackground member function to change the background color of a view in double-buffering mode.
Example
This function switches the double-buffering mode of the given view:
|
static void ToggleDoubleBuffering(IlvManager* manager, IlvView* view) { manager->setDoubleBuffering(view, !manager->isDoubleBuffering(view)); }
|