| 1 | // Aseprite Document Library |
| 2 | // Copyright (c) 2001-2014 David Capello |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifndef DOC_ALGORITHM_POLYGON_H_INCLUDED |
| 8 | #define DOC_ALGORITHM_POLYGON_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include "doc/algorithm/hline.h" |
| 12 | #include "gfx/fwd.h" |
| 13 | |
| 14 | #include <vector> |
| 15 | |
| 16 | namespace doc { |
| 17 | namespace algorithm { |
| 18 | |
| 19 | void polygon(int vertices, const int* points, void* data, AlgoHLine proc); |
| 20 | bool createUnion(std::vector<int>& pairs, const int x, int& ints); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | #endif |
| 25 | |