Attempt to allocate ALL buffers of an entire AnimOb.
Source position: agraphics.pas line 2325
function GetGBuffers( |
anOb: pAnimOb; |
rp: pRastPort; |
flag: LongInt |
):LongBool; |
anOb |
|
A pointer to the AnimOb structure |
rp |
|
A pointer to the current RastPort |
True if the memory allocations were all successful, else False
For each sequence of each component of the AnimOb, allocate memory for:
if db is set TRUE (user wants double-buffering) allocate:
If an AnimOb is passed to GetGBuffers twice new buffers will be allocated and therefore old pointers to buffers will be lost in space.
If any of the memory allocations fail it does not free the partial allocations that did succeed.
|
Deallocate memory obtained by GetGBuffers() |