1
0
forked from 0ad/0ad

Allow access to GL extension list

This was SVN commit r777.
This commit is contained in:
Ykkrosh 2004-07-19 19:04:17 +00:00
parent d27c345f28
commit 464dfd7ee5
2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@ extern "C"
}
static const char* exts;
static const char* exts = NULL;
// check if the extension <ext> is supported by the OpenGL implementation
@ -115,6 +115,10 @@ int ogl_get_gfx_info()
return 0;
}
const char* oglExtList()
{
return exts;
}
// call after each video mode change
void oglInit()

View File

@ -96,6 +96,9 @@ extern void oglInit();
// gfx_card and gfx_drv_ver are unchanged on failure.
extern int ogl_get_gfx_info();
// return a NULL-terminated string (of unlimited length) containing
// a space-separated list of supported extensions.
const char* oglExtList();
#ifdef __cplusplus
}