| 32 | namespace vkb |
| 33 | { |
| 34 | std::string get_extension(const std::string &uri) |
| 35 | { |
| 36 | auto dot_pos = uri.find_last_of('.'); |
| 37 | if (dot_pos == std::string::npos) |
| 38 | { |
| 39 | throw std::runtime_error{"Uri has no extension"}; |
| 40 | } |
| 41 | |
| 42 | return uri.substr(dot_pos + 1); |
| 43 | } |
| 44 | |
| 45 | void screenshot(vkb::rendering::RenderContextC &render_context, const std::string &filename) |
| 46 | { |
no outgoing calls
no test coverage detected