| Home
| Previous
| Next
| Up

InitBuffers

Initialises the buffer manager functions

Declaration

ibool GA_bufferFuncs::InitBuffers(
N_int32 numBuffers,
N_uint32 flags,
GA_softStereoFuncs *stereo)

Prototype In

snap/graphics.h

Parameters

numBuffers | Number of flippable buffers to allocate
flags | Extra flags for allocating buffers (GA_BufferFlagsType)
stereo | Software stereo functions, or NULL for non-stereo mode

Return Value

True on success, false on failure.

Description

This function initialises the buffer manager, and allocates the primary buffer and all related flippable buffers (for a total of numBuffers buffers). If any of the buffers cannot be allocated, this function will return false. If the stereo parameter is not NULL, stereo mode is enabled using the passed in software stereo functions.

See Also

AllocBuffer, GetPrimaryBuffer, FlipToBuffer, SetActiveBuffer, BitBltBuf

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