| 75 | |
| 76 | |
| 77 | int Svg::getNumPoints() { |
| 78 | if (!handle) |
| 79 | return 0; |
| 80 | int count = 0; |
| 81 | for (NSVGshape* shape = handle->shapes; shape; shape = shape->next) { |
| 82 | for (NSVGpath* path = shape->paths; path; path = path->next) { |
| 83 | count += (path->npts / 3); |
| 84 | } |
| 85 | } |
| 86 | return count; |
| 87 | } |
| 88 | |
| 89 | |
| 90 | void Svg::draw(NVGcontext* vg) { |
nothing calls this directly
no outgoing calls
no test coverage detected