[osg-users] confused with setTextureAttributeAndModes

Julien Valentin julienvalentin51 at gmail.com
Thu May 26 15:28:46 PDT 2016

I had a bug using setTextureAttributeAndModes with a TextureBuffer and realized there are two methods (i used the setTextureAttribute and now all is good)

 /** Set this StateSet to contain specified attribute and override flag.*/
        void setTextureAttribute(unsigned int unit,StateAttribute *attribute, StateAttribute::OverrideValue value=StateAttribute::OFF);
        /** Set this StateSet to contain specified attribute and set the associated GLMode's to specified value.*/
        void setTextureAttributeAndModes(unsigned int unit,StateAttribute *attribute, StateAttribute::GLModeValue value=StateAttribute::ON);

Can you explain me what are the purpose of both of them?
Is setTextureAttributeAndModes only there for retrocompatibility?
Thanks in advance

Thank you!


Read this topic online here:

More information about the osg-users mailing list