From 51ced5a191078ce4ef08d57e343e91db007f556f Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 27 Oct 2021 19:30:06 +0800 Subject: *misc --- Runtime/Graphics/ImageData.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'Runtime/Graphics/ImageData.h') diff --git a/Runtime/Graphics/ImageData.h b/Runtime/Graphics/ImageData.h index 4525ee3..7bf0335 100644 --- a/Runtime/Graphics/ImageData.h +++ b/Runtime/Graphics/ImageData.h @@ -46,27 +46,4 @@ private: LUA_BIND_DECL_METHOD(_GetSize); }; -enum EImageDataAsyncError -{ - NoFile = 1, - ParseFailed = 2, - InvalidFormat = 3, -}; - -struct ImageDataRequest -{ - bool isDone, hasError; - int error; - int progress, all; - ImageData* result; - std::vector results; -}; - -namespace ImageDataUtil -{ - ImageData* Load(const char* path); - ImageDataRequest* LoadAsync(const char* path); - ImageDataRequest* LoadAsync(std::vector paths); -} - #endif \ No newline at end of file -- cgit v1.1-26-g67d0