returns true if the passed in extension name is supported
| 228 | |
| 229 | // returns true if the passed in extension name is supported |
| 230 | bool opengl_CheckExtension(const char *extName) { |
| 231 | const char *p = (const char *)dglGetString(GL_EXTENSIONS); |
| 232 | int extNameLen = strlen(extName); |
| 233 | const char *end = p + strlen(p); |
| 234 | |
| 235 | while (p < end) { |
| 236 | int n = strcspn(p, " "); |
| 237 | if ((extNameLen == n) && (strncmp(extName, p, n) == 0)) |
| 238 | return true; |
| 239 | |
| 240 | p += (n + 1); |
| 241 | } |
| 242 | |
| 243 | return false; |
| 244 | } |
| 245 | |
| 246 | // Gets some specific information about this particular flavor of opengl |
| 247 | void opengl_GetInformation() { |