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

InitTmpRas

Initialize area of local memory for usage by areafill, floodfill, gfxtext.

Declaration

Source position: agraphics.pas line 2342

function InitTmpRas(

  tmpRas: pTmpRas;

  buffer: Pointer;

  size: LongInt

):pTmpRas;

Arguments

tmpRas

  

A pointer to a TmpRas structure to be linked into a RastPort

buffer

  

A pointer to a contiguous piece of chip memory.

size

  

Size in bytes of buffer

Function result

Makes buffer available for users of RastPort

Description

The area of memory pointed to by buffer is set up to be used by RastPort routines that may need to get some memory for intermediate operations in preparation to putting the graphics into the final BitMap. Tmpras is used to control the usage of buffer.

Errors

The function itself is a bug. Why does this function exist at all? The necessary memory should be allocated in InitRastPort() or the functions that need it.

See also

AreaEnd

  

Process table of vectors and ellipses and produce areafill.

Flood

  

Flood rastport like areafill.

GfxText

  

Write text characters (no formatting).


Documentation generated on: 2021-07-30