aboutsummaryrefslogtreecommitdiff
path: root/src/irrlicht/DTXImageLoader.cpp
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-12-19 00:01:17 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-12-22 12:47:40 +0100
commitc736e13c7dd04bfa6c0580a4db3d6501dc28eed1 (patch)
tree04d1b490f710b0ed956e8f43d620ed6f846b8cf2 /src/irrlicht/DTXImageLoader.cpp
parente2f9ee3f8cd319e952e4f5d5ec466f0ea9e6e77f (diff)
downloadglobalops-irrlicht.tar.gz
Irrlichtirrlicht
Diffstat (limited to 'src/irrlicht/DTXImageLoader.cpp')
-rw-r--r--src/irrlicht/DTXImageLoader.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/irrlicht/DTXImageLoader.cpp b/src/irrlicht/DTXImageLoader.cpp
new file mode 100644
index 0000000..965cca7
--- /dev/null
+++ b/src/irrlicht/DTXImageLoader.cpp
@@ -0,0 +1,18 @@
+#include <DTXImageLoader.h>
+#include <DTXImage.h>
+
+bool DTXImageLoader::isALoadableFileExtension(const irr::io::path &filename)
+ const
+{
+ return irr::core::hasFileExtension(filename, ".dtx");
+}
+
+bool DTXImageLoader::isALoadableFileFormat(irr::io::IReadFile *file) const
+{
+ return false;
+}
+
+irr::video::IImage *DTXImageLoader::loadImage(irr::io::IReadFile *file) const
+{
+ return new DTXImage;
+}