Snyder Adam D Civ AFRL/VACD wrote:
After reading through "fg_props.hxx", I found that the most efficient was to get a property value is to use fgGetNode instead of the "fgGet" functions. Is there a more efficient way to set properties, or is that best way to use the "fgSet" functions????

You could also use getter/setter functions to synchronize the property and a local variable, or even tie a variable directly to a property.
This uses some C++ voodoo though.


You can see an example of that in FlightGear/src/AIModel/AIBase.cxx in the AIBAse::bind function.

Erik


_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to