MGL_glResizeBuffers

Resizes the OpenGL buffers for the windowed device context.

Declaration

void MGLAPI MGL_glResizeBuffers(
    MGLDC *dc)

Prototype In

mgraph.h

Parameters

dc

MGL device context to resize the buffers for

 

Description

This function informs the MGL that the dimensions of a windowed device context have changed, and that the OpenGL rendering buffers need to be re-sized to the new dimensions of the window. It is up to the application programmer to capture the WM_SIZE messages in windowed modes, and call this function when the window size changes to let the MGL correctly update the buffer dimensions.

Note:    This function is not necessary in fullscreen modes.

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