X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebfa01338b4e86f8767319a83e94a23ec3706a28..058f225a44d83d42ba9d773efc705badbf0e5e3c:/interface/wx/glcanvas.h diff --git a/interface/wx/glcanvas.h b/interface/wx/glcanvas.h index a1cba0957a..d92570869c 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. @@ -242,7 +243,17 @@ public: @return @true if attributes are supported. */ - static bool IsDisplaySupported(const int* attribList = NULL); + static bool IsDisplaySupported(const int* attribList); + + /** + 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