Getting Started with the osgDotNet Wrappers Generator
Building and Running the Code Generator
- Set environment variable OPENSCENEGRAPH_X86_DIR to the location of your OpenSceneGraph x86 install directory. This is the same directory as CMAKE_INSTALL_PREFIX when building with CMake's "Visual Studio 8 2005" generated build system.
- (Optional) If x64 wrappers are desired, also set OPENSCENEGRAPH_X64_DIR to the location of your OpenSceneGraph x64 install directory. This is the same directory as CMAKE_INSTALL_PREFIX when building with CMake's "Visual Studio 8 2005 Win64" generated build system.
- Run Visual Studio, open Generator.sln, select the Release build, and build the project.
- In the Visual Studio project settings under Debugging, add the OPENSCENEGRAPH_X86_DIR to the execution path by setting the Environment string to
PATH=$(OPENSCENEGRAPH_X86_DIR)\bin;$(PATH) - Run the executable via Debug > Start Without Debugging.
Building the Wrappers
- Open the generated solution file in output\x86-build\OsgDotNet.sln (or output\x64-build\OsgDotNet.sln for x64).
- Select the Debug or Release configuration and build the solution. The wrapper assemblies (for x86) are output to the debug and release subdirectories of output\x86-build\bin.
Developing against the Wrappers
Read about GettingStartedWithTheWrappers.
