al_get_pixel_size
int al_get_pixel_size(int format)
Introduced in 5.0.0
Return the number of bytes that a pixel of the given format occupies.
See also: ALLEGRO_PIXEL_FORMAT, al_get_pixel_format_bits
Most helpful discussions:
- Bad memory leak in al_get_pixel on Linux?
- Mipmap flag on iOS simulator when using PROGRAMABLE_PIPELINE
- Getting size of ALLEGRO_BITMAP
- _al_wgl_get_display_mode not returning format
- [A5] Bitmaps to OpenGL textures
- ALLEGRO_DISPLAY_MODE - Format Variable
- Determine if an image is solid
- ATI Radeon HD 5770 [Sapphire] Crash on ogl_display