mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 23:48:35 +00:00
Allow access to GL extension list
This was SVN commit r777.
This commit is contained in:
+5
-1
@@ -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()
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user