Hi Enrico,

On Fri, 2004-09-03 at 04:40, Enrico Borrione wrote:
> Hiya all,
> I am back from vacations, tanned and relaxed :)

Lucky you! ;)

> And now... more programming, i think. 
> Someone of you may remember my past struggles to extend the
> SkyBackground class via inlines and Base files. Now, due to some project
> changes, i was wondering whether is it possible to c++ extend the class
> via the usual 
>
> //start the *code*
> class  MySkyBackground : public osg::SkyBackground
> {
...
> stuff or not. My experiments so far failed miserably. 
> I guess i am missing the inline files, but i was hoping to leave my
> opensg distribution unchanged, putting all the changes in my
> application.

Nah, it's not that easy, especially if you want your code to run on
Windows.

You can extend OpenSG in your application, but you have to go the usual
route for OpenSG, which means creating a new .fcd File (either using
fcdEdit or another editor) and turning that into source code (we now
have a version of fcdEdit, fcdCompile, that doesn't need QT so it should
work for anybody). The only difference between objects that go into the
core libraries and into an application is that the latter needs to set
the "systemcomponent" flag to false and the "library" variable to empty.

I'm still tweaking this a little, so if you try it and it doesn't work
please tell me. ;)

Thanks

        Dirk



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to