20,741
edits
No edit summary |
|||
Line 295: | Line 295: | ||
naRef naStringValue(naContext c, naRef n); | naRef naStringValue(naContext c, naRef n); | ||
= Wrapping C++ Classes as Nasal Objects ( | = Wrapping C++ Classes as Nasal Objects (cppbind) = | ||
Please see: https://gitorious.org/fg/simgear/trees/next/simgear/nasal/cppbind | |||
<!-- | |||
'''To be written by Hooray & Zakalawe''' | '''To be written by Hooray & Zakalawe''' | ||
For the time being, it's a good idea to take a look at the FGPositioned wrappers for the navdb to see how this is done in Nasal, see [https://gitorious.org/fg/flightgear/blobs/next/src/Scripting/NasalPositioned.cxx $FG_SRC/Scripting/NasalPositioned.cxx]. | For the time being, it's a good idea to take a look at the FGPositioned wrappers for the navdb to see how this is done in Nasal, see [https://gitorious.org/fg/flightgear/blobs/next/src/Scripting/NasalPositioned.cxx $FG_SRC/Scripting/NasalPositioned.cxx]. | ||
Also, the implementation of the SGPropertyNode bindings in [https://gitorious.org/fg/flightgear/blobs/next/src/Scripting/nasal-props.cxx nasal-props.cxx] contains additional examples. | Also, the implementation of the SGPropertyNode bindings in [https://gitorious.org/fg/flightgear/blobs/next/src/Scripting/nasal-props.cxx nasal-props.cxx] contains additional examples. | ||
--> | |||
== Background == | == Background == | ||
Quoting: http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg17546.html | Quoting: http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg17546.html |