[osg-users] Constructor parameters of osg::Uniform

Werner Modenbach Werner.Modenbach at texion.eu
Thu Jun 28 04:28:21 PDT 2018


Hi all,

I recently discovered a strange case in creation of a Uniform:

farRadiusRescaleUniform=newosg::Uniform("farRadiusRescale",2.0f);

The only constructor I could find is like that:

Uniform(Typetype,conststd::string&name,intnumElements=1);

The wrong construction sometimes leads to unexpected results.
Why is the compiler not reclaming about this mismatch in parameters?

- Werner -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180628/b3a36657/attachment.html>


More information about the osg-users mailing list