From 26f05c6e3dcac9995345fb5a2b031be7e3ea79e9 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 30 Oct 2021 22:59:42 +0800 Subject: *TextGenerator --- Runtime/Graphics/ImageData.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'Runtime/Graphics/ImageData.h') 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 { public: - enum EPixelFormat - { - RGBA, - RGB, - R, - RG, - BGR, - BGRA - }; - - enum EPixelElementType - { - UNSIGNED_BYTE, - UNSIGNED_INT, - BYTE, - INT, - FLOAT, - }; - ImageData(LuaBind::VM* vm) : LuaBind::NativeClass(vm) { -- cgit v1.1-26-g67d0