[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'agraphics' (#aros)

GetGBuffers

Attempt to allocate ALL buffers of an entire AnimOb.

Declaration

Source position: agraphics.pas line 2082

function GetGBuffers(

  AnOb: PAnimOb;

  Rp: PRastPort;

  Db: LongBool

):LongBool;

Arguments

AnOb

  

A pointer to the AnimOb structure

Rp

  

A pointer to the current RastPort

Db

  

Double-buffer indicator (set True for double-buffering)

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: 2017-01-10