Initialize vector collection matrix
Source position: agraphics.pas line 2089
procedure InitArea( |
AreaInfo: PAreaInfo; |
Buffer: Pointer; |
MaxVectors: SmallInt |
); |
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 |
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.
|
Process table of vectors and ellipses and produce areafill. |
|
|
Define a new starting point for a new shape in the vector list. |
|
|
Add a point to a list of end points for areafill. |
|
|
Add a ellipse to areainfo list for areafill. |