NAME
GetGBuffers -- Attempt to allocate ALL buffers of an entire AnimOb.
SYNOPSIS
status = GetGBuffers(anOb, rp, db)
D0 A0 A1 D0
BOOL GetGBuffers(struct AnimOb *, struct RastPort *, BOOL);
FUNCTION
For each sequence of each component of the AnimOb, allocate memory for:
SaveBuffer
BorderLine
CollMask and ImageShadow (point to same buffer)
if db is set TRUE (user wants double-buffering) allocate:
DBufPacket
BufBuffer
INPUTS
anOb = pointer to the AnimOb structure
rp = pointer to the current RastPort
db = double-buffer indicator (set TRUE for double-buffering)
RESULT
status = TRUE if the memory allocations were all successful, else FALSE
BUGS
If any of the memory allocations fail it does not free the partial
allocations that did succeed.
SEE ALSO
FreeGBuffers() graphics/gels.h