From 464dfd7ee5d100f1ebd2fe8a7968d4d8991088fd Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Mon, 19 Jul 2004 19:04:17 +0000 Subject: [PATCH] Allow access to GL extension list This was SVN commit r777. --- source/lib/ogl.cpp | 6 +++++- source/lib/ogl.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/source/lib/ogl.cpp b/source/lib/ogl.cpp index 12325ba12a..9c9c3c8d90 100755 --- a/source/lib/ogl.cpp +++ b/source/lib/ogl.cpp @@ -26,7 +26,7 @@ extern "C" } -static const char* exts; +static const char* exts = NULL; // check if the extension 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() diff --git a/source/lib/ogl.h b/source/lib/ogl.h index 872afbd3d2..504796bf9b 100755 --- a/source/lib/ogl.h +++ b/source/lib/ogl.h @@ -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 }