(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/graphics.h>

BOOL GetGBuffers (anOb , rp , db)

LOCATION
In GfxBase at offset 28

SYNOPSIS
struct AnimOb * anOb
struct RastPort * rp
BOOL db

FUNCTION
Allocate all buffers for a whole AnimOb. In particular this means getting buffers for - BorderLine - SaveBuffer - CollMask - ImageShadow (points to the same memory as CollMask does) - if db is set to TRUE the user wants double-buffering, so we need - DBufPacket - BufBuffer

INPUTS
anOb = pointer to AnimOb structure to be added to list of AnimObs rp = pointer to a valid RastPort with initialized GelsInfo structure
double
buffering is wanted

RESULT
TRUE, if all the memory allocations were successful, otherwise FALSE

EXAMPLE

SEE ALSO
FreeGBuffers() graphics/gels.h

NOTES
If an AnimOb is passed to GetGBuffers twice new buffers will be allocated and therefore old pointers to buffers will be lost in space.

BUGS

INTERNALS
Are real VSprites possible as a part of an AnimOb? If yes, then different sizes of memory would have to be allocated for BorderLine and CollMask. Currently the sizes of memory allocated for this are most of the time too large as they are just allocated for a Bob. If this code is changed then the code of FreeGBuffers() will have to be changed, too, and this text can be erased :-))

HISTORY