-
Book Overview & Buying
-
Table Of Contents
OpenSceneGraph 3.0: Beginner's Guide
The last but not least thing to do before programming with the installed OSG is to configure some important environment variables. It is OK if you ignore this section and continue to the next chapter, but understanding what environment variables do and how to make use of them will bring about significant benefits.
Environment variables are a set of global values that may affect a program's starting behaviors. OSG has defined a number of environment variables that can be used to change its internal running states and display settings. Due to limited textual length, only the most commonly-used variables are introduced here. These are automatically set for the Current User if you are using the installer on Windows:
OSG_FILE_PATH identifies the location of the sample data. According to the path value kept by it, OSG could directly find and read any file archived in the specified path, otherwise you may have to enter an absolute path like C:/Programs Files/OpenSceneGraph...
Change the font size
Change margin width
Change background colour