diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-06 22:14:11 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-06 22:14:11 -0300 |
commit | 0c985913a74ce196e81e711350961f3bd97a7355 (patch) | |
tree | d72e63d45c6081f141063739d9209f3b81c422ee /drivers/etc1/texture_loader_pkm.h | |
parent | 06bc4e20d3952129b622fc3c07a33d725930058f (diff) | |
parent | dda9528dac88c15025cc989028f4f6639ec84a3b (diff) |
Merge pull request #4092 from sanikoyes/Pr-etc1-pkm-loading
Add etc1(pkm) texture loading support
Diffstat (limited to 'drivers/etc1/texture_loader_pkm.h')
-rw-r--r-- | drivers/etc1/texture_loader_pkm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/etc1/texture_loader_pkm.h b/drivers/etc1/texture_loader_pkm.h new file mode 100644 index 0000000000..5788716d9f --- /dev/null +++ b/drivers/etc1/texture_loader_pkm.h @@ -0,0 +1,18 @@ +#ifndef TEXTURE_LOADER_PKM_H +#define TEXTURE_LOADER_PKM_H + +#include "scene/resources/texture.h" +#include "io/resource_loader.h" + +class ResourceFormatPKM : public ResourceFormatLoader{ +public: + + virtual RES load(const String &p_path,const String& p_original_path="",Error *r_error=NULL); + virtual void get_recognized_extensions(List<String> *p_extensions) const; + virtual bool handles_type(const String& p_type) const; + virtual String get_resource_type(const String &p_path) const; + + virtual ~ResourceFormatPKM() {} +}; + +#endif // TEXTURE_LOADER_PKM_H |