Added the supported() method to the FXGLVisual class, for determining the level of OpenGL support (if any) when displaying to remote X11 servers. For example,
int major, minor;
if (FXGLVisual::supported(getApp(), major, minor)) {
/**
* Limit OpenGL calls to those supported by
* this major and minor version number!
*/
} else {
/**
* OpenGL is not supported at all on the remote server.
*/
}
|
Note that supported() returns the lesser of the local OpenGL library's version and the remote server's OpenGL version. For example, if your local OpenGL library supports OpenGL 1.3 but the remote server only supports OpenGL 1.1, supported() will return major and minor values of 1.
Added the isBufferSwapCopy() member function, which returns TRUE if this visual accomplishes a buffer swap by copying the back buffer's contents to the front buffer (thus leaving the back buffer's contents intact). Note that this function always returns FALSE on X11 systems, where a swap is accomplished by truly exchanging the contents of the front and back buffers. For Win32 systems, the return value depends on the capabilities of the graphics driver.