|
From: Ethan A M. <merritt@u.washington.edu> - 2008-10-30 15:24:47
|
On Thursday 30 October 2008, Christoph Bersch wrote: > is there any possibility for a terminal driver to know within the > _filled_polygon() function when the first and last polygon of a surface > are drawn? CVS code: The routine term->layer(TERM_LAYER_BEFORE_PLOT) is called at the start of each clause within the 'plot' or 'splot' command. So a terminal driver could, if needed, set an internal flag when it receives this call and then term->filled_polygon() could test and clear it after the first call. There is a corresponding call to term->layer(TERM_LAYER_AFTER_PLOT) at the end. This is, of course, *after* the last polygon but if it's a question of having the terminal do some cleanup at the end then this should be sufficient. -- Ethan A Merritt |