diff --git a/gif_loader.cpp b/gif_loader.cpp index 4de56cd..3fc07b3 100644 --- a/gif_loader.cpp +++ b/gif_loader.cpp @@ -1,2 +1,17 @@ #include "gif_loader.h" + +Array GIFLoader::load_gif(const String &file) { + Array images; + + return images; +} + +GIFLoader::GIFLoader() { +} +GIFLoader::~GIFLoader() { +} + +void GIFLoader::_bind_methods() { + ClassDB::bind_method(D_METHOD("load_gif", "file"), &GIFLoader::load_gif); +} \ No newline at end of file diff --git a/gif_loader.h b/gif_loader.h index 0addeb7..3f96704 100644 --- a/gif_loader.h +++ b/gif_loader.h @@ -4,8 +4,19 @@ #include "core/object/reference.h" +#include "core/io/image.h" + class GIFLoader : public Reference { + GDCLASS(GIFLoader, Reference); + public: + Array load_gif(const String &file); + + GIFLoader(); + ~GIFLoader(); + +private: + static void _bind_methods(); }; #endif