From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/GfxDevice/opengles20/TexturesGLES20.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Runtime/GfxDevice/opengles20/TexturesGLES20.h (limited to 'Runtime/GfxDevice/opengles20/TexturesGLES20.h') diff --git a/Runtime/GfxDevice/opengles20/TexturesGLES20.h b/Runtime/GfxDevice/opengles20/TexturesGLES20.h new file mode 100644 index 0000000..ded70e9 --- /dev/null +++ b/Runtime/GfxDevice/opengles20/TexturesGLES20.h @@ -0,0 +1,21 @@ +#ifndef UNITY_TEXTURES_GLES_H_ +#define UNITY_TEXTURES_GLES_H_ + +#include "Configuration/UnityConfigure.h" +#include "Runtime/Graphics/TextureFormat.h" +#include "Runtime/GfxDevice/GfxDeviceTypes.h" + +class ImageReference; + +void UploadTexture2DGLES2( + TextureID glname, TextureDimension dimension, UInt8* srcData, int width, int height, + TextureFormat format, int mipCount, UInt32 uploadFlags, int masterTextureLimit, TextureColorSpace colorSpace ); +void UploadTextureSubData2DGLES2( + TextureID glname, UInt8* srcData, + int mipLevel, int x, int y, int width, int height, TextureFormat format, TextureColorSpace colorSpace ); +void UploadTextureCubeGLES2( + TextureID tid, UInt8* srcData, int faceDataSize, int size, + TextureFormat format, int mipCount, UInt32 uploadFlags, TextureColorSpace colorSpace ); +bool ReadbackTextureGLES2(ImageReference& image, int left, int bottom, int width, int height, int destX, int destY, unsigned int globalSharedFBO, unsigned int helperFBO); + +#endif // UNITY_TEXTURES_GLES_H_ -- cgit v1.1-26-g67d0