| 7 | { |
| 8 | template <typename T> |
| 9 | T findOptionOrDefault( |
| 10 | const DrawPolygonOptions& options, const char* key, T defaultValue) |
| 11 | { |
| 12 | if (options.find(key) == options.end()) |
| 13 | return defaultValue; |
| 14 | return std::any_cast<T>(options.at(key)); |
| 15 | } |
| 16 | |
| 17 | void drawPoint(RenderTarget surface, int x, int y, float radius, const Color& color) |
| 18 | { |
no test coverage detected