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; |
