comparison src/video/SDL_video.c @ 4984:889e6fef8fc5

Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface()
author Sam Lantinga <slouken@libsdl.org>
date Wed, 12 Jan 2011 15:22:29 -0800
parents 4a7f284a82b2
children b68a0e03db02
comparison
equal deleted inserted replaced
4983:b49d3869ebd2 4984:889e6fef8fc5
1737 SDL_PIXELFORMAT_RGB24, 1737 SDL_PIXELFORMAT_RGB24,
1738 SDL_PIXELFORMAT_BGR24, 1738 SDL_PIXELFORMAT_BGR24,
1739 SDL_PIXELFORMAT_RGB565, 1739 SDL_PIXELFORMAT_RGB565,
1740 SDL_PIXELFORMAT_BGR565, 1740 SDL_PIXELFORMAT_BGR565,
1741 SDL_PIXELFORMAT_ARGB1555, 1741 SDL_PIXELFORMAT_ARGB1555,
1742 SDL_PIXELFORMAT_RGBA5551,
1742 SDL_PIXELFORMAT_ABGR1555, 1743 SDL_PIXELFORMAT_ABGR1555,
1744 SDL_PIXELFORMAT_BGRA5551,
1743 SDL_PIXELFORMAT_RGB555, 1745 SDL_PIXELFORMAT_RGB555,
1744 SDL_PIXELFORMAT_BGR555, 1746 SDL_PIXELFORMAT_BGR555,
1745 SDL_PIXELFORMAT_ARGB4444, 1747 SDL_PIXELFORMAT_ARGB4444,
1748 SDL_PIXELFORMAT_RGBA4444,
1746 SDL_PIXELFORMAT_ABGR4444, 1749 SDL_PIXELFORMAT_ABGR4444,
1750 SDL_PIXELFORMAT_BGRA4444,
1747 SDL_PIXELFORMAT_RGB444, 1751 SDL_PIXELFORMAT_RGB444,
1748 SDL_PIXELFORMAT_ARGB2101010, 1752 SDL_PIXELFORMAT_ARGB2101010,
1749 SDL_PIXELFORMAT_INDEX8, 1753 SDL_PIXELFORMAT_INDEX8,
1750 SDL_PIXELFORMAT_INDEX4LSB, 1754 SDL_PIXELFORMAT_INDEX4LSB,
1751 SDL_PIXELFORMAT_INDEX4MSB, 1755 SDL_PIXELFORMAT_INDEX4MSB,
1825 SDL_PIXELFORMAT_ARGB8888, 1829 SDL_PIXELFORMAT_ARGB8888,
1826 SDL_PIXELFORMAT_RGBA8888, 1830 SDL_PIXELFORMAT_RGBA8888,
1827 SDL_PIXELFORMAT_ABGR8888, 1831 SDL_PIXELFORMAT_ABGR8888,
1828 SDL_PIXELFORMAT_BGRA8888, 1832 SDL_PIXELFORMAT_BGRA8888,
1829 SDL_PIXELFORMAT_ARGB1555, 1833 SDL_PIXELFORMAT_ARGB1555,
1834 SDL_PIXELFORMAT_RGBA5551,
1830 SDL_PIXELFORMAT_ABGR1555, 1835 SDL_PIXELFORMAT_ABGR1555,
1836 SDL_PIXELFORMAT_BGRA5551,
1831 SDL_PIXELFORMAT_ARGB4444, 1837 SDL_PIXELFORMAT_ARGB4444,
1838 SDL_PIXELFORMAT_RGBA4444,
1832 SDL_PIXELFORMAT_ABGR4444, 1839 SDL_PIXELFORMAT_ABGR4444,
1840 SDL_PIXELFORMAT_BGRA4444,
1833 SDL_PIXELFORMAT_ARGB2101010, 1841 SDL_PIXELFORMAT_ARGB2101010,
1834 SDL_PIXELFORMAT_UNKNOWN 1842 SDL_PIXELFORMAT_UNKNOWN
1835 }; 1843 };
1836 1844
1837 if (surface->format->Amask) { 1845 if (surface->format->Amask) {