summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/texture.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-04-02 08:47:15 +0800
committerchai <chaifix@163.com>2019-04-02 08:47:15 +0800
commit250e30d73f09e9da2b5a81d0fbae63744ae12a73 (patch)
tree0f55daf334c073e1779d7a1284799a2056aad714 /source/modules/asura-core/graphics/texture.h
parent66fe16dd5ed57ae958fc25158d0defae2e6fae6a (diff)
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/texture.h')
-rw-r--r--source/modules/asura-core/graphics/texture.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/modules/asura-core/graphics/texture.h b/source/modules/asura-core/graphics/texture.h
index 02d3407..f19f3a7 100644
--- a/source/modules/asura-core/graphics/texture.h
+++ b/source/modules/asura-core/graphics/texture.h
@@ -42,6 +42,17 @@ namespace AsuraEngine
};
///
+ /// ʽGPUڲCPUⲿʽ
+ ///
+ struct TextureFormat
+ {
+ GLenum internalformat; // GPUڲʽ
+
+ GLenum externalformat; // CPUⲿʽ
+ GLenum type; // ⲿʽÿchannelֵ
+ };
+
+ ///
/// 2D࣬2d meshrender targetбʹáTextureȾԭϽǣϷ
/// ϲԵѿϵΪ׼EditorҲϽΪԭ㣬Ϊ
/// 㡣
@@ -94,6 +105,13 @@ namespace AsuraEngine
//----------------------------------------------------------------------------//
+ ///
+ /// תcolor formatΪtexture format
+ ///
+ TextureFormat ConvertColorFormat(const ColorFormat& colorformat);
+
+ //----------------------------------------------------------------------------//
+
GLuint mTex;
FilterMode mMinFilter;