diff options
author | chai <chaifix@163.com> | 2019-07-31 21:35:12 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-07-31 21:35:12 +0800 |
commit | 084623519e95f0ab0cf4bc328b5fa736d679c5bd (patch) | |
tree | 9d409dceda50335e9fb881fc5107c9c1c561f988 /source/modules/asura-core/image/stb_decoder.h | |
parent | 012a44bd13ab41d056e7d3884a39027b6cea62b5 (diff) |
*修改名称空间风格
Diffstat (limited to 'source/modules/asura-core/image/stb_decoder.h')
-rw-r--r-- | source/modules/asura-core/image/stb_decoder.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/source/modules/asura-core/image/stb_decoder.h b/source/modules/asura-core/image/stb_decoder.h index ad89214..6158b21 100644 --- a/source/modules/asura-core/image/stb_decoder.h +++ b/source/modules/asura-core/image/stb_decoder.h @@ -3,26 +3,24 @@ #include "image_decoder.h" -namespace AsuraEngine +namespace_begin(AsuraEngine) +namespace_begin(Image) + +/// +/// ʹstb_imageѹJPEGTGABMPļ +/// +class STBDecoder ASURA_FINAL + : public ImageDecoder { - namespace Image - { +public: - /// - /// ʹstb_imageѹJPEGTGABMPļ - /// - class STBDecoder ASURA_FINAL - : public ImageDecoder - { - public: + bool CanDecode(AEIO::DataBuffer& buffer) override; - bool CanDecode(AEIO::DataBuffer& buffer) override; + void Decode(AEIO::DataBuffer& buffer, ImageData& data) override; - void Decode(AEIO::DataBuffer& buffer, ImageData& data) override; +}; - }; - - } -} +namespace_end +namespace_end #endif
\ No newline at end of file |