[Contents] [Index] [Help] [Retrace] [browse <] [Browse >]


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);

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