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

GetGBuffers

Attempt to allocate ALL buffers of an entire AnimOb.

Declaration

Source position: agraphics.pas line 2321

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