Extensions |
The XLua object can interact with certain 3rd party extensions through C Modules proivded by the extension author. C Modules are a powerful tool for adding functionality to Lua, but in particular extension authors can write a C Module that exposes some or all of their extension's capabilities to XLua without needing to pass through MMF's event loop. Objects can be exposed to the C Modules using the generic Export Object action in the MMF Interface.
C Modules can be included in a variety of ways. One is to use the Open External C Module action, where you browse for the module's DLL and specify the package name (e.g., ext.opengl). The other way is to use Lua's require function in your lua code, which can import C Modules from a relative directory, or from MMF's binary data list.
Although extension-specific C Modules are maintained and supported by their respective authors, some of them are documented here for example and convenience.
Supported Modules:
Copyright 2010 Justin Aquadro