Janilabo

ClearTPAFromTPAWrap() vs. pp_TPAFilterPoints()

Aug 6th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.56 KB | None | 0 0
  1. {$loadlib pumbaa.dll}
  2.  
  3. var
  4.   TPA, filter, output: TPointArray;
  5.   t: Integer;
  6.  
  7. begin
  8.   TPA := TPAFromBox(IntToBoX(0, 0, 1000, 1000));
  9.   filter := TPAFromBox(IntToBox(300, 300, 700, 700));
  10.   t := GetSystemTime;
  11.   ClearTPAFromTPAWrap(TPA, filter, output);
  12.   WriteLn('ClearTPAFromTPAWrap: ' + IntToStr(GetSystemTime - t) + ' ms. [' + IntToStr(Length(output)) + ']');
  13.   SetLength(output, 0);
  14.   t := GetSystemTime;
  15.   pp_TPAFilterPoints(TPA, filter);
  16.   WriteLn('pp_TPAFilterPoints: ' + IntToStr(GetSystemTime - t) + ' ms. [' + IntToStr(Length(TPA)) + ']');
  17. end.
Advertisement
Add Comment
Please, Sign In to add comment