1GLFLUSH(3G)                                                        GLFLUSH(3G)
2
3
4

NAME

6       glFlush - force execution of GL commands in finite time
7
8

C SPECIFICATION

10       void glFlush( void )
11
12

DESCRIPTION

14       Different GL implementations buffer commands in several different loca‐
15       tions, including network buffers and the graphics  accelerator  itself.
16       glFlush empties all of these buffers, causing all issued commands to be
17       executed as quickly as  they  are  accepted  by  the  actual  rendering
18       engine.   Though  this execution may not be completed in any particular
19       time period, it does complete in finite time.
20
21       Because any GL program might be executed  over  a  network,  or  on  an
22       accelerator  that  buffers  commands,  all programs should call glFlush
23       whenever they count on having all of their previously  issued  commands
24       completed.   For  example,  call  glFlush before waiting for user input
25       that depends on the generated image.
26

NOTES

28       glFlush can return at any time.  It does not wait until  the  execution
29       of all previously issued GL commands is complete.
30

ERRORS

32       GL_INVALID_OPERATION  is  generated  if glFlush is executed between the
33       execution of glBegin and the corresponding execution of glEnd.
34

SEE ALSO

36       glFinish(3G)
37
38
39
40                                                                   GLFLUSH(3G)
Impressum