Created a GLenum Texture::selectSizedInternalFormat(const osg::Image* image=0) const method to help clean up set up of glTexStorage.

Fixed typo.
This commit is contained in:
Robert Osfield
2018-08-17 12:20:59 +01:00
parent 7ae7a994b4
commit 58a51cbc41
2 changed files with 47 additions and 33 deletions

View File

@@ -652,8 +652,10 @@ class OSG_EXPORT Texture : public osg::StateAttribute
/** Get the internal texture format type. */
inline InternalFormatType getInternalFormatType() const { return _internalFormatType; }
class TextureObject;
/* select the size internal format to use based on Image when available or Texture format settings.*/
GLenum selectSizedInternalFormat(const osg::Image* image=0) const;
class TextureObject;
/** return true if the texture image data has been modified and the associated GL texture object needs to be updated.*/
virtual bool isDirty(unsigned int /*contextID*/) const { return false; }