Re: drawing part in Breve
jon klein <[email protected]> Tue, 28 Sep 2004 10:27:31 -0400
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Sep 27, 2004, at 6:30 PM, Naiqi Weng wrote: > But there are still some problems. For example, the cube does not shown > on > the display until I click it on the normal display screen. Also after > it > is shown, If I click on it, the picture flashes. So I am wondering if > there is a file in which responds to mouse click action that update > the > display. Also sometimes two pictures flashes on the display > simultaneously. It seems that there is a mechanism or a buffer to save > showed pictures. Could you point out where can I find this file or > methods? Thank you very much!! The reason a mouse-click can disrupt drawing is because OpenGL is used not only for drawing, but also for selecting and dragging -- these actions sometimes change OpenGL's state or drawlists and can lead to flashes or other problems in rendering. The functions which handle this are slGlSelect and slVectorForDrag. You might experiment with disabling dragging/selecting (by having them return immediately) to see if that helps to avoid some of the problems. - jon klein _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve