Summary

In this chapter, we mainly discussed about the file I/O mechanism, including the use of plugins and the chain-of-responsibility design pattern in OSG. The osgDB::Registry is the singleton class storing all of the reader-writers and wrappers which are linked in at runtime for reading native and non-native file formats. By the end of this chapter, we were able to understand how OSG plugins work, and how to implement a new plugin reading and writing interface with user-defined subclasses of the osgDB::ReaderWriter base class.

In this chapter, we have learnt:

  • How to load files of a specified extension, and searching for a specific plugin in the table provided
  • How to understand the pseudo-loaders, and how to load files from the Internet, using ...

Get OpenSceneGraph 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.