summaryrefslogtreecommitdiffstats
path: root/modules/etc1/texture_loader_pkm.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-10-11 20:44:26 +0200
committerRémi Verschelde <rverschelde@gmail.com>2016-10-15 11:50:39 +0200
commitb1e8889d969f5f88539c47c2afac6c9ea2a2dc11 (patch)
treee5d3cec5db3c03d59f257ee94ecbefa48956a602 /modules/etc1/texture_loader_pkm.h
parentc31ad71f10f68705a456b4257c084d4008c34370 (diff)
downloadredot-engine-b1e8889d969f5f88539c47c2afac6c9ea2a2dc11.tar.gz
dds/etc1/pbm/pvr: Make those modules and split thirdparty files
They are not particularly packaged in Linux distros so we do not facilitate unbundling via SCons. There could be done if/when there is interest. Also s/pnm/pbm/, long-lived typo :)
Diffstat (limited to 'modules/etc1/texture_loader_pkm.h')
-rw-r--r--modules/etc1/texture_loader_pkm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/etc1/texture_loader_pkm.h b/modules/etc1/texture_loader_pkm.h
new file mode 100644
index 0000000000..5788716d9f
--- /dev/null
+++ b/modules/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