20,741
edits
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{WIP}} | {{WIP}} | ||
{{Stub}} | |||
== 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. In particular, you'll want to check out the unit tests in cppbind_test.cxx. This should get you started with the basics of the framework. Next, there are more examples to be found in $FG_SRC/Scripting, you'll want to look at the following source that make use of cppbind (listed in ascending complexity): | |||
* NasalString.?xx | |||
* NasalHTTP.?xx | |||
* NasalCanvas.?xx | |||
* NasalPositioned_cppbind.?xx | |||
== Getting started == | |||
Open $FG_SRC/Scripting/CMakeLists.txt and add these entries to the SOURCES/HEADER section respectively: | Open $FG_SRC/Scripting/CMakeLists.txt and add these entries to the SOURCES/HEADER section respectively: | ||