summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/ImageData.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/ImageData.h')
-rw-r--r--Runtime/Graphics/ImageData.h38
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)
{