mirror of
https://github.com/Relintai/gif_loader.git
synced 2024-11-12 10:25:04 +01:00
Gif loader api setup.
This commit is contained in:
parent
3aa5b9c3aa
commit
af9ba66816
@ -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);
|
||||
}
|
11
gif_loader.h
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user