SDK Examples
From X-Plane SDK
X-Plane SDK Example Code
Download this package to get a wide variety of examples--including HelloWorld--that are buildable on Mac, Windows, and Linux.
(This download contains project files for MSVC6, X-Code, CodeWarrior, GCC (Linux) and Delphi. It contain C and pascal source.)
Setup Notes
There are project files for Microsoft VC6, Metrowerks CW8, XCode 2.2 and make files for gcc. The Delphi projects have been modified so that they will build under Delphi on Windows or Kylix on Linux.
Important Note: to ensure that the sample projects on this page will find the correct headers and libraries first create a new folder, XPSDK102. Download and expand XPSDK1.0.2 from the downloads page, creating an SDK folder. Put this and the expanded plugin example files found below on this page into the newly created XPSDK102 folder like this:
\XPSDK102
\SDK
\SDKExamples
\AdvancedSDKExamples
\WidgetLibraryExample
I have personally built all projects using this layout on all platforms.
Included Plugins
- Camera.c
- CommandSim.c
- DrawAircraft.cpp
- DrawingHook.c
- HelloWorld.c
- HotKey.c
- KeySniffer.c
- ManagePlugins.c
- Navigation.c
- Planes.c
- ShareData.c
- SimData.c
- TimedProcessing.c
X-Plane SDK