diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..caecc41 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 3.0) + +project(CMAssetsManage) + +include(path_config.cmake) +CMAssetsManageSetup(${CMAKE_CURRENT_SOURCE_DIR}) + +add_subdirectory(${CMASSETS_MANAGE_ROOT_SOURCE_PATH}) diff --git a/inc/hgl/assets/AssetsSource.h b/inc/hgl/assets/AssetsSource.h new file mode 100644 index 0000000..94b660a --- /dev/null +++ b/inc/hgl/assets/AssetsSource.h @@ -0,0 +1,24 @@ +#ifndef HGL_ASSETS_SOURCE_INCLUDE +#define HGL_ASSETS_SOURCE_INCLUDE + +namespace hgl +{ + /** + * 资产来源 + */ + enum class AssetsSource + { + Memory=0, ///<内存 + Filesystem, ///<文件系统 + Archive, ///<打包/压缩档 + Database, ///<数据库 + SaveDevice, ///<存储设备 + StreamDevice, ///<流式设备(如摄像头、麦克风) + Network, ///<网络 + + BEGIN_RANGE =Memory, + END_RANGE =Network, + RANGE_SIZE =(END_RANGE-BEGIN_RANGE)+1 + };//enum class AssetsSource +}//namespace hgl +#endif//HGL_ASSETS_SOURCE_INCLUDE diff --git a/inc/hgl/assets/AssetsType.h b/inc/hgl/assets/AssetsType.h new file mode 100644 index 0000000..8ebf438 --- /dev/null +++ b/inc/hgl/assets/AssetsType.h @@ -0,0 +1,25 @@ +#ifndef HGL_ASSETS_TYPE_INCLUDE +#define HGL_ASSETS_TYPE_INCLUDE + +namespace hgl +{ + /** + * 资产类型 + */ + enum class AssetsType + { + Binary=0, ///<二进制数据 + + Text, ///<文本 + Bitmap, ///<位图 + Vector, ///<矢量图 + MIDI, ///