Docs » Autodocs » graphics.library » GetGBuffers
GetGBuffers -- Attempt to allocate ALL buffers of an entire AnimOb.
status = GetGBuffers(anOb, rp, db) D0 A0 A1 D0 BOOL GetGBuffers(struct AnimOb *, struct RastPort *, BOOL);
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
anOb = pointer to the AnimOb structure rp = pointer to the current RastPort db = double-buffer indicator (set TRUE for double-buffering)
status = TRUE if the memory allocations were all successful, else FALSE
If any of the memory allocations fail it does not free the partial allocations that did succeed.
FreeGBuffers(), <graphics/gels.h>
|