nanogui: Screen update methods
Subject:
Re: [nanogui] Re: Screen update methods
From:
"Greg Haerr" ####@####.####
Date:
28 May 2007 18:59:40 +0100
Message-Id: <044f01c7a151$c9347670$2f01a8c0@HaydenLake>
: But I use GrSetBackgroundPixmap instead of GrCopy, since the server calls
: the blit function for me always when needed.
This is a somewhat tricky method of using blit to update a
window with changing content, since the applications programmer
won't know when exactly it happens. Pretty interesting though,
since this method effectively updates a window area from
an offscreen pixmap almost automatically. Note that it
doesn't update the window just because the pixmap
has changed though... you would need a timer-based
GrClearWindow call to force redrawing for that case,
and then the system would redisplay the entire pixmap,
rather than just the modified portion. It might be better
to keep an update clip region when the offscreen pixmap
is updated, to speed the double buffering draws.
Regards,
Greg