| 865 | bool overflowed() const { return m_overflow; } |
| 866 | |
| 867 | void process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count) |
| 868 | { |
| 869 | dtIgnoreUnused(tile); |
| 870 | dtIgnoreUnused(polys); |
| 871 | |
| 872 | int numLeft = m_maxPolys - m_numCollected; |
| 873 | int toCopy = count; |
| 874 | if (toCopy > numLeft) |
| 875 | { |
| 876 | m_overflow = true; |
| 877 | toCopy = numLeft; |
| 878 | } |
| 879 | |
| 880 | memcpy(m_polys + m_numCollected, refs, (size_t)toCopy * sizeof(dtPolyRef)); |
| 881 | m_numCollected += toCopy; |
| 882 | } |
| 883 | }; |
| 884 | |
| 885 | dtCollectPolysQuery::~dtCollectPolysQuery() |
no test coverage detected