AllocBuffer
Allocate a buffer with the requested attributes
Declaration
GA_buf * GA_bufferFuncs::AllocBuffer(
N_int32 width,
N_int32 height,
N_int32 flags)
Prototype In
snap/graphics.h
Parameters
width |
Width of the buffer in pixels |
height |
Height of the buffer in scanlines |
flags |
Flags used to create the buffer (GA_BufferFlagsType) |
Return Value
Pointer to the allocated buffer, NULL on failure.
Description
This function allocates a new buffer and returns it. This only allocates video memory buffers for drawing and bitmap storage and caching. It is not used to allocate depth buffers or texture buffers.
SEE ALSO FreeBuffer, GetPrimaryBuffer, FlipToBuffer, GetFlippableBuffer, LockBuffer, BitBltBuf, SetActiveBuffer
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com