Gif loader api setup.

This commit is contained in:
Relintai 2022-12-10 17:14:50 +01:00
parent 3aa5b9c3aa
commit af9ba66816
2 changed files with 26 additions and 0 deletions

View File

@ -1,2 +1,17 @@
#include "gif_loader.h" #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);
}

View File

@ -4,8 +4,19 @@
#include "core/object/reference.h" #include "core/object/reference.h"
#include "core/io/image.h"
class GIFLoader : public Reference { class GIFLoader : public Reference {
GDCLASS(GIFLoader, Reference);
public: public:
Array load_gif(const String &file);
GIFLoader();
~GIFLoader();
private:
static void _bind_methods();
}; };
#endif #endif