void DrawEnd( BOOL SwapBuffers = TRUE );



Specifies whether the front and back buffers will be swapped with the DrawEnd function call. If the parameter is TRUE then the buffers will be swapped. Otherwise the buffers will be not swapped.


The DrawEnd method function ends its corresponding DrawBegin call. The DrawEnd function should be called when the drawing into the object window is finished.

Each call to DrawBegin must have a corresponding call to the DrawEnd method function. It is possible to call the DrawBegin function when another objectís DrawBegin call is not Ďfinishedí with the corresponding DrawEnd call. However, in this case, only the last objectís DrawEnd call restores the rendering context active before the first DrawBegin call. The previous such objectís DrawEnd calls have no effect.

See Also

DrawBegin, wglMakeCurrent