Lars Müller 15e8f9e6a0 Fix rendering regression with TGA type 1 files with BGRA8 color (#15402)
TGA uses BGR(A)8, stored in memory in that order. Irrlicht typically expects 0xAARRGGBB, which depends on endianness.
(This means that on little endian, no [B][G][R][A] -> 0xAARRGGBB conversion needs to be done, but Irrlicht was swapping the bytes.)

This makes both conversion functions consistently convert from [B][G][R]([A]) to 0xAARRGGBB (SColor), documents them properly and moves them to CImageLoaderTGA.cpp
so no poor soul shall be fooled by them in the near future.

---------

Co-authored-by: Ælla Chiana Moskopp <erle@dieweltistgarnichtso.net>
2024-11-19 13:37:05 +01:00
..
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-09-02 21:50:13 +02:00
2024-08-28 15:38:02 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-09-02 21:50:13 +02:00
2024-03-26 21:39:02 +01:00
2024-11-15 12:18:48 +01:00
2024-11-15 12:18:48 +01:00
2024-11-15 12:18:48 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-09-02 21:50:13 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-09-02 21:50:13 +02:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-03-26 21:39:02 +01:00
2024-09-16 23:12:52 +02:00
2024-03-26 21:39:02 +01:00