From Bob Kuehne, added osg::getGlVersion() and fixed a minor typo in Texture3D.

This commit is contained in:
Robert Osfield
2006-03-08 16:11:54 +00:00
parent fa5ff9d169
commit 4fc4e60cc3
5 changed files with 19 additions and 5 deletions

View File

@@ -20,6 +20,12 @@
namespace osg {
/** Return floating-point OpenGL version number.
* Note: Must only be called within a valid OpenGL context,
* undefined behavior may occur otherwise.
*/
extern OSG_EXPORT float getGLVersionNumber();
/** Return true if OpenGL "extension" is supported.
* Note: Must only be called within a valid OpenGL context,
* undefined behavior may occur otherwise.

View File

@@ -144,7 +144,7 @@ class OSG_EXPORT Texture3D : public Texture
void lowestCommonDenominator(const Extensions& rhs);
void setupGLExtenions(unsigned int contextID);
void setupGLExtensions(unsigned int contextID);
void setTexture3DSupported(bool flag) { _isTexture3DSupported=flag; }
bool isTexture3DSupported() const { return _isTexture3DSupported; }