2
0

common.bmx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ' ISC License
  2. '
  3. ' Copyright (c) 2023-2024, Bruce A Henderson
  4. '
  5. ' Permission to use, copy, modify, and/or distribute this software for any purpose
  6. ' with or without fee is hereby granted, provided that the above copyright notice
  7. ' and this permission notice appear in all copies.
  8. '
  9. ' THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  10. ' REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  11. ' FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  12. ' INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  13. ' OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. ' TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  15. ' THIS SOFTWARE.
  16. '
  17. SuperStrict
  18. Import Math.Vector
  19. Import "earcut/include/*.h"
  20. Import "clipper2/CPP/Clipper2Lib/include/*.h"
  21. Import "clipper2/CPP/Clipper2Lib/src/clipper.engine.cpp"
  22. Import "clipper2/CPP/Clipper2Lib/src/clipper.offset.cpp"
  23. Import "clipper2/CPP/Clipper2Lib/src/clipper.rectclip.cpp"
  24. Import "glue.cpp"
  25. Extern
  26. Function bmx_polygon_tri_svec2i:Int[](poly:SVec2I Ptr, size:Int)
  27. Function bmx_polygon_tri_svec2f:Int[](poly:SVec2F Ptr, size:Int)
  28. End Extern