[osg-users] Constructor parameters of osg::Uniform
Robert Osfield
robert.osfield at gmail.com
Thu Jun 28 05:57:05 PDT 2018
On Thu, 28 Jun 2018 at 13:06, Sebastian Messerschmidt
<sebastian.messerschmidt at gmx.de> wrote:
> @Robert:
> Any insights?
The original osg::Uniform class is a bit of unwieldy mess. In
hindsight we shouldn't have gone for this particular implementation as
it's a bit too open ended.
In master I have written a osg::UniformBase class and a template
uniform class that enables use to create a series of explictly typed
uniforms such as IntUnfirom, FloatUnfiorm etc. This scheme is a bit
more robust when it comes to being able to easily pick the type you
want.
Robert.
More information about the osg-users
mailing list