[osg-users] confused with setTextureAttributeAndModes

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


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

Code:
 /** 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!

Cheers,
Julien

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67245#67245








More information about the osg-users mailing list