45. C++ Tutorials

All source code (C++) tutorials can be found in the tutorial subdirectory. The tutorials are usually associated to a namespace and are to be found in the various subdirectories agx, agxCollide, agxOSG, agxSDK,…

A new tutorial is added by creating a source code file named tutorial_X.cpp/(tutorial_X.h) which will automatically be picked up by the build system and added to the target build.

Common to all tutorials in the agxOSG directory is the ExampleApplication class which encapsulates functionality for capturing keyboard events, creating example scenes etc.

These tutorials are all built around different “scenes”. The current scene can be selected at run-time with keyboard presses (0…9, F1-F10) or via a command-line argument: –scene [1…]