|
Exported Data
To function properly, the add-ons need to export the following things:
-
A pointer to a character array that represents add-on's name in the menu. The name of the exported pointer should be name.
-
A pointer to a character array that represents a help-string that is displayed in the status-bar while the add-on's menu-item is active. The name of the exported pointer should be menu_help_string. It is not absolutey necessary for the add-on to export this to function properly, but it is recommended.
-
An int32 that contains the add-on API version. The name of the exporrted int32 should be add_on_api_version. The variable should be initialized to ADD_ON_API_VERSION, which is defined in Manipulator.h.
-
An add_on_types-type variable should be exported. The type add_on_types is declared in AddOns.h. The name of the exported variable should be add_on_type and it should be initialized to a suitable value that is found from AddOns.h. Currently this exported variable is not used for anything, but later it will be used to group the add-ons in a proper menu-hierarchy.
Add-on also needs to implement the following function, which is automatically exported:
Manipulator* instantiate_add_on(BBitmap*,ManipulatorInformer*)
The declaration for this function can be found in AddOns.h.
|