Add ITexture::getOriginalColorFormat to access color format of images used to create a texture.

We already had the variable, just no access function.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5809 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2019-04-30 15:59:41 +00:00
parent 37ccfe58a2
commit b3a156b1bb
2 changed files with 7 additions and 0 deletions

View File

@ -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).

View File

@ -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.