Hi Wojtek,

On Wed, Dec 8, 2010 at 12:32 PM, Wojciech Lewandowski
<[email protected]> wrote:
> That solves my problem. I saw this method used inside the code but did not
> notice it is static so I thought it can be used only when we know the
> uniform ptr.
>
> Do you think it makes sense to add following extra method to
> PerContextProgram ?
>
> inline GLint  getUniformLocation( const std::string & name )
> {
>     return getUniformLocation( osg::Uniform::getNameId(  name ) );
> }

For backwards compatibility purposes I have no objection to adding
this method and the above implementation into the OSG.  Feel free to
implement, test and post the change to osg-submissions.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to