mrmBot-Matrix/natives/image.cc

75 lines
3.4 KiB
C++
Raw Normal View History

#include <napi.h>
#include <list>
#include "blur.h"
#include "blurple.h"
#include "caption.h"
#include "caption2.h"
#include "circle.h"
#include "crop.h"
#include "explode.h"
#include "flag.h"
#include "flip.h"
#include "freeze.h"
2020-07-16 14:31:48 +00:00
#include "gamexplain.h"
#include "globe.h"
2020-07-21 14:03:08 +00:00
#include "homebrew.h"
#include "invert.h"
#include "jpeg.h"
#include "leak.h"
#include "magik.h"
#include "meme.h"
#include "mirror.h"
2020-07-23 00:54:58 +00:00
#include "misc.h"
2020-07-22 18:12:38 +00:00
#include "motivate.h"
2020-07-27 23:02:59 +00:00
#include "qr.h"
2020-07-22 18:12:38 +00:00
#include "resize.h"
#include "reverse.h"
#include "scott.h"
#include "speed.h"
#include "sonic.h"
2020-07-23 00:54:58 +00:00
#include "spin.h"
#include "tile.h"
#include "trump.h"
#include "wall.h"
#include "wdt.h"
#include "watermark.h"
Napi::Object Init(Napi::Env env, Napi::Object exports)
{
exports.Set(Napi::String::New(env, "blur"), Napi::Function::New(env, Blur));
exports.Set(Napi::String::New(env, "blurple"), Napi::Function::New(env, Blurple));
exports.Set(Napi::String::New(env, "caption"), Napi::Function::New(env, Caption));
exports.Set(Napi::String::New(env, "captionTwo"), Napi::Function::New(env, CaptionTwo));
exports.Set(Napi::String::New(env, "circle"), Napi::Function::New(env, Circle));
exports.Set(Napi::String::New(env, "crop"), Napi::Function::New(env, Crop));
exports.Set(Napi::String::New(env, "explode"), Napi::Function::New(env, Explode));
exports.Set(Napi::String::New(env, "flag"), Napi::Function::New(env, Flag));
exports.Set(Napi::String::New(env, "flip"), Napi::Function::New(env, Flip));
exports.Set(Napi::String::New(env, "freeze"), Napi::Function::New(env, Freeze));
2020-07-16 14:31:48 +00:00
exports.Set(Napi::String::New(env, "gamexplain"), Napi::Function::New(env, Gamexplain));
exports.Set(Napi::String::New(env, "globe"), Napi::Function::New(env, Globe));
2020-07-21 14:03:08 +00:00
exports.Set(Napi::String::New(env, "homebrew"), Napi::Function::New(env, Homebrew));
exports.Set(Napi::String::New(env, "invert"), Napi::Function::New(env, Invert));
exports.Set(Napi::String::New(env, "jpeg"), Napi::Function::New(env, Jpeg));
exports.Set(Napi::String::New(env, "leak"), Napi::Function::New(env, Leak));
exports.Set(Napi::String::New(env, "magik"), Napi::Function::New(env, Magik));
exports.Set(Napi::String::New(env, "meme"), Napi::Function::New(env, Meme));
exports.Set(Napi::String::New(env, "mirror"), Napi::Function::New(env, Mirror));
2020-07-22 18:12:38 +00:00
exports.Set(Napi::String::New(env, "motivate"), Napi::Function::New(env, Motivate));
2020-07-27 23:02:59 +00:00
exports.Set(Napi::String::New(env, "qrread"), Napi::Function::New(env, QrRead));
2020-07-22 18:12:38 +00:00
exports.Set(Napi::String::New(env, "resize"), Napi::Function::New(env, Resize));
exports.Set(Napi::String::New(env, "reverse"), Napi::Function::New(env, Reverse));
exports.Set(Napi::String::New(env, "scott"), Napi::Function::New(env, Scott));
exports.Set(Napi::String::New(env, "speed"), Napi::Function::New(env, Speed));
exports.Set(Napi::String::New(env, "sonic"), Napi::Function::New(env, Sonic));
2020-07-23 00:54:58 +00:00
exports.Set(Napi::String::New(env, "spin"), Napi::Function::New(env, Spin));
exports.Set(Napi::String::New(env, "swirl"), Napi::Function::New(env, Swirl));
exports.Set(Napi::String::New(env, "tile"), Napi::Function::New(env, Tile));
exports.Set(Napi::String::New(env, "trump"), Napi::Function::New(env, Trump));
exports.Set(Napi::String::New(env, "wall"), Napi::Function::New(env, Wall));
exports.Set(Napi::String::New(env, "wdt"), Napi::Function::New(env, Wdt));
exports.Set(Napi::String::New(env, "watermark"), Napi::Function::New(env, Watermark));
return exports;
}
NODE_API_MODULE(addon, Init);