Export (0) Print
Expand All

glFinish

The glFinish function blocks until all OpenGL execution is complete.

void glFinish( void );

Parameters

This function has no parameters.

Remarks

The glFinish function does not return until the effects of all previously called OpenGL functions are complete. Such effects include all changes to the OpenGL state, all changes to the connection state, and all changes to the framebuffer contents.

The glFinish function requires a round trip to the server.

Error Codes

The following is the error code generated and its condition.

Error code Condition
GL_INVALID_OPERATION glFinish was called between a call to glBegin and the corresponding call to glEnd.

Requirements

  Windows NT/2000: Requires Windows NT 3.5 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Gl.h.
  Library: Use Opengl32.lib.

See Also

glBegin, glEnd, glFlush


  

Community Additions

Show:
© 2014 Microsoft