Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (28 loc) · 1002 Bytes

File metadata and controls

42 lines (28 loc) · 1002 Bytes

NAME

GetGBuffers -- Attempt to allocate ALL buffers of an entire AnimOb.

SYNOPSIS

    status = GetGBuffers(anOb, rp, db)
    D0                   A0    A1  D0

    BOOL GetGBuffers(struct AnimOb *, struct RastPort *, BOOL);

Links: AnimOb RastPort

FUNCTION

For each sequence of each component of the AnimOb, allocate memory for: SaveBuffer BorderLine CollMask and ImageShadow (point to same buffer) if db is set TRUE (user wants double-buffering) allocate: DBufPacket BufBuffer

INPUTS

anOb = pointer to the AnimOb structure rp = pointer to the current RastPort db = double-buffer indicator (set TRUE for double-buffering)

RESULT status = TRUE if the memory allocations were all successful, else FALSE

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

SEE ALSO

FreeGBuffers graphics/gels.h