Nasal/CppBind: Difference between revisions

Jump to navigation Jump to search
Line 197: Line 197:
== Exposing HLA classes to Nasal ==
== Exposing HLA classes to Nasal ==
Here's another stub, this time exposing the simgear::HLAFederate class and a handful of its methods to Nasal space as a Nasal Ghost. Note that the following snippet assumes, that:
Here's another stub, this time exposing the simgear::HLAFederate class and a handful of its methods to Nasal space as a Nasal Ghost. Note that the following snippet assumes, that:
* You configured, built & installed OpenRTI (see [[HLA]]
* You configured, built & installed OpenRTI (see [[HLA]])
* you configured, built & installed SimGear with -DENABLE_RTI=ON
* you configured, built & installed SimGear with '''-DENABLE_RTI=ON'''
* you configured, built FlightGear with -DENABLE_RTI=ON
* you configured, built FlightGear with '''-DENABLE_RTI=ON'''


In and of itself, this snippet isn't yet particularly useful, especially because we don't want HLA federates to be running inside the main process, but the same HLA bindings could obviously also be used by a standalone Nasal interpreter at some point. So this just serves as an example. To learn more about HLA, please also see [[Developing with HLA]] and [[Nasal HLA standalone]].
In and of itself, this snippet isn't yet particularly useful, especially because we don't want HLA federates to be running inside the main process, but the same HLA bindings could obviously also be used by a standalone Nasal interpreter at some point. So this just serves as an example. To learn more about HLA, please also see [[Developing with HLA]] and [[Nasal HLA standalone]].

Navigation menu