Canvas sandbox: Difference between revisions

Jump to navigation Jump to search
Line 261: Line 261:


== CanvasNasal ==
== CanvasNasal ==
{{Main article|Canvas_Development#Implementation}}
{{Main article|Canvas_Development#Canvas_Development#The_Future_of_Canvas_in_FlightGear}}
This is not directly a new  element, it's just an abstract base class that can be used to register a factory of Nasal-space elements (think elements of a MFD like screens, pages etc). While that may be considered problematic from a performance standpoint, the idea is to expose the CanvasElement interface to Nasal space, so that developers can more easily prototype new elements in scripting space, and register those with the main Canvas::Group manager, without having to be proficient in C++.
This is not directly a new  element, it's just an abstract base class that can be used to register a factory of Nasal-space elements (think elements of a MFD like screens, pages etc). While that may be considered problematic from a performance standpoint, the idea is to expose the CanvasElement interface to Nasal space, so that developers can more easily prototype new elements in scripting space, and register those with the main Canvas::Group manager, without having to be proficient in C++.


Navigation menu