Tim Moore wrote:
> You don't need to do anything special for a ReaderWriter that you wish to 
> link into your application. You write the class in exactly the same way, 
> including the REGISTER_OSGPLUGIN macro. Your plugin will be registered early 
> and OSG will use your code to load that file extension without searching for 
> an external plugin.
> 
> 
> Depending on your platform, you might need to perform some additional magic 
> to ensure that your code is actually linked into the application. On Unix, 
> for example, if your plugin code is in a statically-linked library, the .o 
> file containing the REGISTER_OSGPLUGIN "call" won't be linked in unless you 
> create some external reference to code in that file.
> 
> ...
> 
> Not FILE_NOT_HANDLED, but NOT_IMPLEMENTED. Since the default virtual methods 
> return NOT_IMPLEMENTED, it's cleaner not to implement them yourself; you 
> might get the return result wrong :)
> 
> 
> Tim
> 

Ah, that is just exactly what I wanted to know. Many thanks. Are either of 
these clearly documented on the wiki somewhere that I should know about? Or 
would it perhaps be worth starting an entry on developing a new plugin?
Thomas

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31824#31824





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

Reply via email to