Added support for modifying the osg::Texture*:Extensions stuctures.

Added an example modifying osg::Texture::Extensions to osgtext.  Optionally
compiled out by default.
This commit is contained in:
Robert Osfield
2003-04-10 13:41:45 +00:00
parent bc4fd5b051
commit 8b03d59be3
7 changed files with 55 additions and 6 deletions

View File

@@ -123,6 +123,7 @@ class SG_EXPORT TextureCubeMap : public Texture
void setupGLExtenions();
void setCubeMapSupported(bool flag) { _isCubeMapSupported=flag; }
bool isCubeMapSupported() const { return _isCubeMapSupported; }
protected:
@@ -139,7 +140,7 @@ class SG_EXPORT TextureCubeMap : public Texture
* If 'createIfNotInitalized' is true then the Extensions object is
* automatically created. However, in this case the extension object
* only be created with the graphics context associated with ContextID..*/
static const Extensions* getExtensions(unsigned int contextID,bool createIfNotInitalized);
static Extensions* getExtensions(unsigned int contextID,bool createIfNotInitalized);
/** setExtensions allows users to override the extensions across graphics contexts.
* typically used when you have different extensions supported across graphics pipes