| Home
| Previous
| Next
| Up

MGL_setBufSize

Sets the size of the internal MGL buffer.

Declaration

void MGLAPI MGL_setBufSize(
unsigned size)

Prototype In

mgraph.h

Parameters

size | New size of the internal MGL buffer

Description

This function sets the size of the internal MGL scratch buffer, which the MGL uses for local scratch space in various places. The default size of this buffer is 32Kb, which is adequate for most needs. If however you attempt to render some primitives and MGL runs out of local storage space you will need to increase the size of this internal buffer.

If you are running on an embedded system and need to trim the amount of memory used by the MGL, you may want to use this function to set a smaller buffer that is suitable for your application needs to decrease the memory footprint used by the MGL at runtime.

Note that this routine must be called before MGL_init is called for the first time.

See Also

MGL_init, MGL_setMaxScanLineWidth

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