Hello Jie Liu,

Jie Liu wrote:
> *"* g_ptrViewport->getMFForegrounds()[0] = ptrImgForeground; *"*
> 
> Sorry, the compiler reports an error: binary '=' :
> no operator found which takes a right-hand operand of type 
> 'osg::ImageForegroundPtr' (or there is no acceptable conversion)

hm, try using editMFForegrounds() instead.
OpenSG 1 traditionally has getFoo() const and getFoo() where the former 
returns a const reference and the latter a non-const reference. In 
OpenSG 2 the non-const version is spelled editFoo() and there is a 
configure options for 1.x that imitates this new convention.
I suspect this is the reason no suitable assignment operator is found.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to