-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
OpenSceneGraph 3.0: Beginner's Guide
We have already learnt a little about the plugin mechanism of reading and writing data files, in Chapter 2, Compilation and Installation of OpenSceneGraph. With the help of specific format-managing plugins, OSG can load various models, images, fonts, and even video data from external files. A plugin here is a separate functionality component that customizes the supported file formats of an OSG-based application. It is recognized as a shared library file implementing the necessary reading or writing interface (or both). Different plugins are always required by user applications to load and construct large and complex scene graphs without too much programming work.
All file I/O plugins conform to the same naming convention; otherwise they are not recognizable and can't be used to read files. Take the native .osg file format as an example: under the Windows system, the plugin library file is osgdb_osg.dll. Under Linux, it is named osgdb_osg.so. Both have the prefix...
Change the font size
Change margin width
Change background colour