diff options
Diffstat (limited to 'source/modules/asura-core/graphics/texture.h')
-rw-r--r-- | source/modules/asura-core/graphics/texture.h | 18 |
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 mesh��render target�б�ʹ�á�Texture����Ⱦԭ�������Ͻǣ���Ϸ�� /// ����ϲ���Եѿ�������ϵΪ������Editor�����������Ҳ�������Ͻ�Ϊԭ�㣬������Ϊ�� /// ���㡣 @@ -94,6 +105,13 @@ namespace AsuraEngine //----------------------------------------------------------------------------// + /// + /// ת��color formatΪtexture format�� + /// + TextureFormat ConvertColorFormat(const ColorFormat& colorformat); + + //----------------------------------------------------------------------------// + GLuint mTex; FilterMode mMinFilter; |