diff --git a/changes.txt b/changes.txt index 3fe42e6d..2cd0ece1 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,6 @@ -------------------------- Changes in 1.9 (not yet released) +- Add ITexture::getOriginalColorFormat to access color format of images used to create a texture - Add IMemoryReadFile interface which allows direct access to memory block used as file. - Add IReadFile::getType() interface to all users to find out what kind of class implements that interface. - .dae/Collada reader/writer now handle whitespace in texture-filenames with escape characters (handle them as xs:anyURI). diff --git a/include/ITexture.h b/include/ITexture.h index be2f8bd3..045778a8 100644 --- a/include/ITexture.h +++ b/include/ITexture.h @@ -226,6 +226,12 @@ public: /** \return The color format of texture. */ ECOLOR_FORMAT getColorFormat() const { return ColorFormat; }; + //! Get the original color format + /** When create textures from image data we will often use different color formats. + For example depending on driver TextureCreationFlag's. + This can give you the original format which the image used to create the texture had */ + ECOLOR_FORMAT getOriginalColorFormat() const { return OriginalColorFormat; }; + //! Get pitch of the main texture (in bytes). /** The pitch is the amount of bytes used for a row of pixels in a texture.