diff options
author | chai <chaifix@163.com> | 2021-10-30 22:59:42 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-30 22:59:42 +0800 |
commit | 26f05c6e3dcac9995345fb5a2b031be7e3ea79e9 (patch) | |
tree | fc32c3e9d235817df0be331a6100b7f8263facab /Runtime/Graphics/ImageData.h | |
parent | c3e259f4d29e9bdcb73617ad8e4d71f117b4d289 (diff) |
*TextGenerator
Diffstat (limited to 'Runtime/Graphics/ImageData.h')
-rw-r--r-- | Runtime/Graphics/ImageData.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/Runtime/Graphics/ImageData.h b/Runtime/Graphics/ImageData.h index 7bf0335..fe26776 100644 --- a/Runtime/Graphics/ImageData.h +++ b/Runtime/Graphics/ImageData.h @@ -5,29 +5,29 @@ #include "Runtime/Threading/Job.h" #include "Runtime/Lua/LuaHelper.h" +enum EPixelFormat +{ + PixelFormat_RGBA, + PixelFormat_RGB, + PixelFormat_R, + PixelFormat_RG, + PixelFormat_BGR, + PixelFormat_BGRA +}; + +enum EPixelElementType +{ + PixelType_UNSIGNED_BYTE, + PixelType_UNSIGNED_INT, + PixelType_BYTE, + PixelType_INT, + PixelType_FLOAT, +}; + // ͼƬÏñËØÊý¾Ý class ImageData : public LuaBind::NativeClass<ImageData> { public: - enum EPixelFormat - { - RGBA, - RGB, - R, - RG, - BGR, - BGRA - }; - - enum EPixelElementType - { - UNSIGNED_BYTE, - UNSIGNED_INT, - BYTE, - INT, - FLOAT, - }; - ImageData(LuaBind::VM* vm) : LuaBind::NativeClass<ImageData>(vm) { |