| Did you know ... | Search Documentation: |
| Pack sdlpl -- prolog/sdl/pixels.pl |
The user-facing format atoms are:
argb8888, rgba8888, bgra8888, abgr8888xrgb8888, xbgr8888, rgbx8888, bgrx8888argb32, rgba32, bgra32, abgr32xrgb32, xbgr32, rgbx32, bgrx32rgb24, bgr24rgb565, bgr565The *8888, *24 and *565 formats are platform-independent. The *32 aliases are platform-dependent: they resolve to the concrete 8888 formats according to the CPU byte order of the running platform, as shown in the values below (valid for little-endian builds). The pack ships as a unit (.pl + .so built for the same platform), so this is always consistent.