20,741
edits
mNo edit summary |
m (→Objective) |
||
| Line 3: | Line 3: | ||
== Objective == | == Objective == | ||
Provide a fully annotated step-by-step introduction to Nasal's cppbind framework. This is mostly based on existing code in SimGear/FlightGear. The cppbind framework itself is to be found $SG_SRC/nasal/cppbind. | Provide a fully annotated step-by-step introduction to Nasal's cppbind framework. This is mostly based on existing code in SimGear/FlightGear. The cppbind framework itself is to be found $SG_SRC/nasal/cppbind and it's pretty well commented, and makes use of Doxygen strings. If you are already familiar with C++ and SG/FG,, you'll want to check out the unit tests in cppbind_test.cxx. | ||
This write-up should get you started with the basics of the framework. | |||
Next, there are more sophisticated examples to be found in $FG_SRC/Scripting, you'll want to look at the following sources that make use of cppbind (listed in ascending complexity): | |||
* NasalString.?xx | * NasalString.?xx | ||
| Line 9: | Line 13: | ||
* NasalCanvas.?xx | * NasalCanvas.?xx | ||
* NasalPositioned_cppbind.?xx | * NasalPositioned_cppbind.?xx | ||
== Getting started == | == Getting started == | ||