![]() |
![]() ![]() |
void GDstate_set_drawable
(GDview *view, int flag)
GDstate_set_drawable sets view 's drawable state. The drawable state determines whether drawing is done directly in the rendering window or, if double buffering is in effect, in the back (pixmap) buffer.
draw_mode can be either of the following:
0 -- Specifies that drawing is done directly in the rendering window. This is typically what you want.
If the rendering window is in double-buffer mode (the structure GDview has a member called double_buffer, which is either 1 or 2 if the view is in double-buffer mode), then you typically first refresh the view with a call to GDview_call_func, then set the drawable state to 0 for drawing directly to the rendering window.
1 -- Specifies that drawing is done to the back (pixmap) buffer. You then call GDview_call_func to make the drawing appear. This setting has no effect if the view is in fact in single-buffer mode.
![]() |
![]() ![]() |