1DTK_UPDATE_SCREEN(3)          Draw Toolkit manual         DTK_UPDATE_SCREEN(3)
2
3
4

NAME

6       dtk_update_screen, dtk_clear_screen, dtk_bgcolor - screen buffer manip‐
7       ulation
8

SYNOPSIS

10       #include <drawtk.h>
11
12       void dtk_update_screen(dtk_hwnd wnd);
13       void dtk_clear_screen(dtk_hwnd wnd);
14       void dtk_bgcolor(float *bgcolor);
15

DESCRIPTION

17       dtk_bgcolor() set bgcolor as the background color of the  current  ren‐
18       dering context. bgcolor should point to an array of 4 float correspond‐
19       ing to an normalized RGBA value. If unspecified, the  background  color
20       is black.
21
22       dtk_clear_screen()  fills the frame buffer with the background color of
23       the window wnd.
24
25       dtk_update_screen() swaps the front and back frame buffers of the  win‐
26       dow  wnd.  Rendering  is  performed  through double buffering, i.e. the
27       draws are rendered on the back buffer which will be displayed on screen
28       when  a call to dtk_update_screen() will be performed. After an update,
29       the content of the back buffer is undefined. So if the  rendered  scene
30       does  not  rewrite  the  whole  frame  buffer,  it  is  safer  to  call
31       dtk_clear_screen() after an update of the screen.
32

RETURN VALUE

34       These functions return no value.
35

SEE ALSO

37
38
39
40
41
42
43EPFL                                 2010                 DTK_UPDATE_SCREEN(3)
Impressum