From 64d9d7b3eb7cece81da8b2cb56eb0f50d87a5964 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 1 Mar 2019 08:50:34 +0800 Subject: *misc --- Source/Asura.Engine/Graphics/PNGDecoder.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Source/Asura.Engine/Graphics/PNGDecoder.h (limited to 'Source/Asura.Engine/Graphics/PNGDecoder.h') diff --git a/Source/Asura.Engine/Graphics/PNGDecoder.h b/Source/Asura.Engine/Graphics/PNGDecoder.h new file mode 100644 index 0000000..dc5bb60 --- /dev/null +++ b/Source/Asura.Engine/Graphics/PNGDecoder.h @@ -0,0 +1,27 @@ +#ifndef __ASURA_ENGINE_PNGDECODER_H__ +#define __ASURA_ENGINE_PNGDECODER_H__ + +#include "ImageDecoder.h" + +namespace AsuraEngine +{ + namespace Graphics + { + + /// + /// 使用lodepng解压png文件 + /// + class PNGDecoder final : public ImageDecoder + { + public: + + bool CanDecode(const Filesystem::DataBuffer* buffer) override; + + void Decode(const Filesystem::DataBuffer* buffer, ImageData* data) override; + + }; + + } +} + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0