MacroPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

with-double-buffering

Arguments: ((window) &body body

This macro should not be needed by most applications. Normally you would achieve double-buffering by enabling the double-buffered property of a window and ensuring that you draw in the window only in a redisplay-window method that Common Graphics calls automatically. See double-buffered for complete information about this property.

But if for some reason you need to draw on a window directly rather than using the usual redisplay-window callback paradigm, and you still want to use double-buffering, then you can do so by wrapping a call to with-double-buffering around the drawing code. This macro will copy the window's memory bitmap to the visible window at the end of its body, just as Common Graphics otherwise does just after it has called redisplay-window.

When using with-double-buffering, the double-buffered property of the window must still be true in order for double-buffering to occur.


Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version