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

InitArea

Initialize vector collection matrix

Declaration

Source position: agraphics.pas line 2101

procedure InitArea(

  AreaInfo: PAreaInfo;

  Buffer: Pointer;

  MaxVectors: SmallInt

);

Arguments

AreaInfo

  

A pointer to AreaInfo structure

Buffer

  

A pointer to chunk of memory to collect vertices

MaxVectors

  

max number of vectors this buffer can hold

Description

This function provides initialization for the vector collection matrix such that it has a size of (max vectors ). The size of the region pointed to by buffer (short pointer) should be five (5) times as large as maxvectors. This size is in bytes. Areafills done by using AreaMove, AreaDraw() and AreaEnd() must have enough space allocated in this table to store all the points of the largest fill. AreaEllipse() takes up two vectors for every call. If AreaMove/AreaDraw()/AreaEllipse() detect too many vectors going into the buffer they will return -1.

See also

AreaEnd

  

Process table of vectors and ellipses and produce areafill.

AreaMove

  

Define a new starting point for a new shape in the vector list.

AreaDraw

  

Add a point to a list of end points for areafill.

AreaEllipse

  

Add a ellipse to areainfo list for areafill.


Documentation generated on: 2017-01-10