Comments About Plugin API

From DeleDWiki

Jump to: navigation, search
Plug-in Development

The plug-in API for DeleD allows you to easily write importers and exporter. Communication between host (DeleD) and plug-in is done largely by passing XML data back and forth, using a pair of callbacks. One callback is exported by the plug-in, used by the host; the other callback is configured by the host when it loads the plug-in, and is used by the plug-in to call back to the host.

Missing Hooks

Unfortunately, the plug-in API doesn't allow first-class integration into the DeleD application as such. Some missing features include:

  • Access to the current sub-object selection.
  • Ability to add a "button" within the DeleD API.
  • Ability to interact with the user in the DeleD view windows.

Plug-ins in C++

The API that comes with DeleD is described in Pascal/Delphi. That's understandable, because DeleD is developed in Delphi. However, translating the API to C++ is possible. A good start is to read the DeleDAPI.h and DeleDAPI.cpp files from the NuXporter open source plug-in on googlecode.com and the wiki page about Plugin Development in C/C++.

Personal tools