diff options
Diffstat (limited to 'cd/src/sim/sim.h')
-rwxr-xr-x | cd/src/sim/sim.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cd/src/sim/sim.h b/cd/src/sim/sim.h index fec3ce6..e98b030 100755 --- a/cd/src/sim/sim.h +++ b/cd/src/sim/sim.h @@ -40,8 +40,11 @@ typedef struct _simLineSegment unsigned short ErrorInc, ErrorAcc; } simLineSegment; -void simAddSegment(simLineSegment* segment, int x1, int y1, int x2, int y2, int *y_max, int *y_min); -int simSegmentInc(simLineSegment* segment, cdCanvas* canvas, int y); +int simAddSegment(simLineSegment* segment, int x1, int y1, int x2, int y2, int *y_max, int *y_min); +int simSegmentInc(simLineSegment* segment); + +int simPolyFindHorizontalIntervals(simLineSegment *segments, int n_seg, int* xx, int *hh, int y, int height); +void simPolyMakeSegments(simLineSegment *segments, int *n_seg, cdPoint* poly, int n, int *max_hh, int *y_max, int *y_min); void simPolyFill(cdSimulation* simulation, cdPoint* poly, int n); void simLineThin(cdCanvas* canvas, int x1, int y1, int x2, int y2); |