clear() bug?
michael sweet
sweetmr at SCT60A.SUNYCT.EDU
Thu Apr 11 22:22:40 AEST 1991
Re: drawing into the background
> How can I solve this problem, i.e., why doesn't clear() work?
Well, clear() works fine, but you are only working on the back buffer when
drawing (by default.) One thing that I do (with my stars program) is to
have a clear() count- when a REDRAW event comes in, this is set to 2 so both
buffers get cleared. Another way would be to enable the clearing on both
windows:
frontbuffer(TRUE);
backbuffer(TRUE); /* default */
and then clear(). Be sure to turn the frontbuffer off with frontbuffer(FALSE)
after the clear, tho...
-Mike
More information about the Comp.sys.sgi
mailing list