| Home
| Previous
| Next
| Up

MGL_updateFromBufferCache

Updates the video memory buffer contents from system memory cache

Declaration

void MGLAPI MGL_updateFromBufferCache(
MGLBUF *buf)

Prototype In

mgraph.h

Parameters

buf | MGL buffer to copy from system memory cache

Description

This function updates the video memory buffer by copying the contents of the system memory cache buffer into the video memory buffer. This is useful if you need to replace the buffer contents with new values, or you need to do software rendering on the buffer. Doing the rendering on the system memory buffer will be faster, and when you are done this function can be used to update the video memory copy of the buffer. Unless you need to specifically do some drawing in hardware, updating the system memory cache and using this function will be faster than updating video memory and using MGL_updateBufferCache.

See Also

MGL_updateBufferCache, MGL_putBuffer

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