Hi -- I've generally found there is no need to put custom code in core OSG, as I can usually get by with callbacks and derived classes. Can you explain why those don't work for you?

Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466



Sukender wrote:
Hi Robert, hi all,

I'm trying to add custom code in some osg plugins (especially 3DS and FBX). I 
often have to write things like:
ADD_DEFINITIONS(-DMY_CUSTOM_CODE) in CMakeLists.txt (or #define MY_CUSTOM_CODE)

#ifdef MY_CUSTOM_CODE
...
#endif

- Can I submit such code (without the #define of course)?
- Do you think there could be a nicer way to isolate custom code?
- And finally, do you think this could be a good idea to have a CMake option such as 
"USER_DEFINES"? And then:
FOREACH(CUR_DEFINE ${USER_DEFINES})
    ADD_DEFINITIONS(-D${CUR_DEFINE})
ENDFOREACH()

Cheers,

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

Reply via email to