summaryrefslogtreecommitdiff
path: root/Source/modules/asura-core/Image/StbDecoder.h
blob: 23e8c38e8af0055f64b552da9a81195060762fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _ASURA_ENGINE_STBDECODER_H_
#define _ASURA_ENGINE_STBDECODER_H_

#include "ImageDecoder.h"

namespace_begin(AsuraEngine)
namespace_begin(Image)

///
/// ʹstb_imageѹJPEGTGABMPļ
///
class STBDecoder ASURA_FINAL
	: public ImageDecoder
{
public:

	bool CanDecode(AEFileSystem::DataBuffer& buffer) override;

	void Decode(AEFileSystem::DataBuffer& buffer, ImageData& data) override;

};

namespace_end
namespace_end

#endif