X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebfa01338b4e86f8767319a83e94a23ec3706a28..c29c95fe24973b94fd724db767193171ca7c513d:/interface/wx/glcanvas.h?ds=sidebyside diff --git a/interface/wx/glcanvas.h b/interface/wx/glcanvas.h index a1cba0957a..49a38c958e 100644 --- a/interface/wx/glcanvas.h +++ b/interface/wx/glcanvas.h @@ -3,7 +3,7 @@ // Purpose: interface of wxGLContext and wxGLCanvas // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -32,6 +32,9 @@ best to check your native platform's glcanvas header (on windows include/wx/msw/glcanvas.h) to see what features your native platform provides. + + wxHAS_OPENGL_ES is defined on platforms that only have this implementation + available (eg the iPhone) und don't support the full specification. @library{wxgl} @category{gl} @@ -82,7 +85,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. @@ -133,7 +137,7 @@ enum /// 1 for multisampling support (antialiasing) WX_GL_SAMPLE_BUFFERS, - /// 4 for 2x2 antialising supersampling on most graphics cards + /// 4 for 2x2 antialiasing supersampling on most graphics cards WX_GL_SAMPLES }; @@ -211,7 +215,7 @@ public: constants. If a constant should be followed by a value, put it in the next array position. For example, WX_GL_DEPTH_SIZE should be followed by the value that indicates the number of bits for the - depth buffer, e.g: + depth buffer, e.g.: @code attribList[n++] = WX_GL_DEPTH_SIZE; attribList[n++] = 32; @@ -242,7 +246,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