Improved extension mechanism.
commitaad6b3677b6ff24a070d8aeff53ee88014bec1d5
authorPaolo Capriotti <p.capriotti@gmail.com>
Sat, 13 Jun 2009 22:35:28 +0000 (14 00:35 +0200)
committerPaolo Capriotti <p.capriotti@gmail.com>
Sat, 13 Jun 2009 22:58:19 +0000 (14 00:58 +0200)
treec6d04d87ca0868bf14fe3356b99e0014093cb462
parent5863ecf589bc5a4dfe6f8f44ea91360f9cc9b20a
Improved extension mechanism.

Native functions are now implemented as slots of a global Extensions object.

Ruby code only needs to require loader.rb, which automatically checks if the
native extension library is present, and adds canned versions of the extension
functions if it is missing.

All the functions are inserted into a global $ext object, and some can be added
in more appropriate places.

At the moment, only the exp_blur function is present, which is also exposed as
a member of Qt::Image.
lib/ext/.gitignore [new file with mode: 0644]
lib/ext/Makefile [deleted file]
lib/ext/expblur.cpp
lib/ext/expblur.so [deleted file]
lib/ext/ext.pro
lib/ext/extconf.rb [new file with mode: 0644]
lib/ext/extensions.cpp [new file with mode: 0644]
lib/ext/extensions.h [new file with mode: 0644]
lib/ext/loader.rb [new file with mode: 0644]
lib/themes/squares/default.rb