From 6a065c913e9308cc72e1ad0723b6167048f439b6 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 8 Aug 2019 08:56:51 +0800 Subject: *misc --- Source/modules/asura-base/FileSystem/DecodedData.h | 52 +++++++++++----------- 1 file changed, 25 insertions(+), 27 deletions(-) (limited to 'Source/modules/asura-base/FileSystem/DecodedData.h') diff --git a/Source/modules/asura-base/FileSystem/DecodedData.h b/Source/modules/asura-base/FileSystem/DecodedData.h index 1744233..f83d1c3 100644 --- a/Source/modules/asura-base/FileSystem/DecodedData.h +++ b/Source/modules/asura-base/FileSystem/DecodedData.h @@ -9,33 +9,31 @@ #include "DataBuffer.h" -namespace AsuraEngine +namespace_begin(AsuraEngine) +namespace_begin(FileSystem) + +/// +/// 可以在另一个线程构建的data继承此类。如图片数据、音频数据等,可以在另一个线程中解析原 +/// 文件,生成内部数据格式,如像素等。 +/// +ASURA_ABSTRACT class DecodedData { - namespace FileSystem - { - - /// - /// 可以在另一个线程构建的data继承此类。如图片数据、音频数据等,可以在另一个线程中解析原 - /// 文件,生成内部数据格式,如像素等。 - /// - ASURA_ABSTRACT class DecodedData - { - public: - - /// - /// 从内存中构建data,可以放在另一个线程里面,从资源管理系统里面加载。 - /// - DecodedData() {}; - virtual ~DecodedData() {}; - - /// - /// 解码内存中的数据并以某种格式保存。 - /// - virtual void Decode(DataBuffer& buffer) = 0; - - }; - - } -} +public: + + /// + /// 从内存中构建data,可以放在另一个线程里面,从资源管理系统里面加载。 + /// + DecodedData() {}; + virtual ~DecodedData() {}; + + /// + /// 解码内存中的数据并以某种格式保存。 + /// + virtual void Decode(DataBuffer& buffer) = 0; + +}; + +namespace_end +namespace_end #endif \ No newline at end of file -- cgit v1.1-26-g67d0