Hi Keith You probably overlooked the error message from the compiler, which is quite clear (and not stupid at all). You should not use the enumerated type name in the qualified name, i.e. instead of tex->setWrap(osg::Texture::WRAP_S, osg::Texture::WrapMode::REPEAT); write tex->setWrap(osg::Texture::WRAP_S, osg::Texture::REPEAT);
Regards Thibault On Tue, May 12, 2009 at 5:16 PM, Keith Steffen <keith.stef...@csptexas.com> wrote: > Hi all, > > I'm using the following lines of code: > > osg::Texture2d *tex = new osgTexture2d(); > tex->setWrap(osg::Texture::WRAP_S, osg::Texture::WrapMode::REPEAT); > > I keep getting a VC warning message that says: > > warning C4482: nonstandard extension used: enum 'osg::Texture::WrapMode' > used in a qualified name > > I cannot figure out how to remove the warning. If I remove osg, Texture, or > WrapMode I get a compiler error. I don't want to turn off warnings, I just > want to get rid of this particular message. What is wrong with > fully qualifiying the enumeration value? > > Keith > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org