From 2ed73c7363f16918bda418aa17baceb48222e69f Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 29 Dec 2008 16:38:41 +0000 Subject: [PATCH] documented IsExtensionSupported git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/glcanvas.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/interface/wx/glcanvas.h b/interface/wx/glcanvas.h index a1cba0957a..aee4e0410e 100644 --- a/interface/wx/glcanvas.h +++ b/interface/wx/glcanvas.h @@ -82,7 +82,8 @@ public: */ enum { - /// Use true color palette (on if no attributes at all specified). + /// Use true color (the default if no attributes at all are specified); + /// do not use a palette. WX_GL_RGBA = 1, /// Specifies the number of bits for buffer if not WX_GL_RGBA. @@ -244,6 +245,16 @@ public: */ static bool IsDisplaySupported(const int* attribList = NULL); + /** + Returns true if the extension with given name is supported + + Notice that while this function is implemented for all of GLX, WGL and + AGL the extensions names are usually not the same for different + platforms and so the code using it still usually uses conditional + compilation. + */ + static bool IsExtensionSupported(const char *extension); + /** Sets the current colour for this window (using @c glcolor3f()), using the wxWidgets colour database to find a named colour. -- 2.45.2