| 21 | |
| 22 | |
| 23 | void insertExtension( |
| 24 | const std::string & extensionName |
| 25 | , std::set<GLextension> * extensions |
| 26 | , std::set<std::string> * unknownExtensionNames) |
| 27 | { |
| 28 | const auto extension = glbinding::aux::Meta::getExtension(extensionName); |
| 29 | |
| 30 | if (GLextension::UNKNOWN != extension) |
| 31 | { |
| 32 | extensions->insert(extension); |
| 33 | } |
| 34 | else if (unknownExtensionNames) |
| 35 | { |
| 36 | unknownExtensionNames->insert(extensionName); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // Implementation for functions with optional parameters (extensions, supported). |
| 41 | // This design prefers a reference focussed interface over optional |