Attempt to allocate ALL buffers of an entire AnimOb.
Source position: agraphics.pas line 2321
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() |