Commit 16684d9f authored by cutealien's avatar cutealien

Add comment about RGB formats which are often flipped in memory.

Thx@ Squarefox for reporting.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5115 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6ac1f8d5
...@@ -13,7 +13,10 @@ namespace irr ...@@ -13,7 +13,10 @@ namespace irr
namespace video namespace video
{ {
//! An enum for the color format of textures used by the Irrlicht Engine. //! An enum for the color format of textures used by the Irrlicht Engine.
/** A color format specifies how color information is stored. */ /** A color format specifies how color information is stored.
NOTE: Byte order in memory is usually flipped (it's probably correct in bitmap files, but flipped on reading).
So for example ECF_A8R8G8B8 is BGRA in memory same as in DX9's D3DFMT_A8R8G8B8 format.
*/
enum ECOLOR_FORMAT enum ECOLOR_FORMAT
{ {
//! 16 bit color format used by the software driver. //! 16 bit color format used by the software driver.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment