summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/texture.h
diff options
context:
space:
mode:
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;