Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

GetGBuffers

Attempt to allocate ALL buffers of an entire AnimOb.

Declaration

Source position: agraphics.pas line 2325

function GetGBuffers(

  anOb: pAnimOb;

  rp: pRastPort;

  flag: LongInt

):LongBool;

Arguments

anOb

  

A pointer to the AnimOb structure

rp

  

A pointer to the current RastPort

Function result

True if the memory allocations were all successful, else False

Description

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.

Errors

If any of the memory allocations fail it does not free the partial allocations that did succeed.

See also

FreeGBuffers

  

Deallocate memory obtained by GetGBuffers()


Documentation generated on: 2021-07-30