nanogui: updating window
Subject:
Re: updating window
From:
"Aaron J. Grier" ####@####.####
Date:
8 Mar 2006 19:04:51 +0000
Message-Id: <20060308190442.GF20104@mordor.unix.fryenet>
On Wed, Mar 08, 2006 at 10:21:01AM -0500, Robbie wrote:
> I don't think this question was asked before but I'm wondering if
> there is anyway to update a window without causing a noticable
> flicker. Is there? If not, is there a way to update a portion of the
> window?
>
> For instance, if I want to add items to a displayed list, or icons for
> that matter, is their a way to update just the portion affected and
> not the entire window?
double-buffer. create an offscreen pixmap, do all your updates there,
and then perform a single blit to the visible window.
since you're not performing any erase/redraw operations to the visible
screen, the flicker is minimized.
--
Aaron J. Grier | Frye Electronics, Tigard, OR | ####@####.####