| Home
| Previous
| Next
| Up

MGL_doubleBuffer

Enables double buffering for the specified display device context.

Declaration

ibool MGLAPI MGL_doubleBuffer(
MGLDC *dc)

Prototype In

mgraph.h

Return Value

True if double buffering is now enabled, false if not.

Description

Enables double buffered graphics mode for the specified device context if possible. When the device context is in double buffered mode, all active output is sent to the hidden backbuffer, while the current front buffer is being displayed. You then make calls to MGL_swapBuffers to swap the front and back buffers so that the previously hidden backbuffer is instantly displayed.

If you intend to start double buffered graphics, you should make sure you call the MGL_createDisplayDC function with the double buffer flag set to true, so that some of offscreen video memory will be allocated for the backbuffer. If the device context only has one video page available, double buffering cannot be started and this function will fail.

See Also

MGL_singleBuffer, MGL_swapBuffers

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com