From Bob Kuehne, added osg::getGlVersion() and fixed a minor typo in Texture3D.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user